Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Web Site Functionality _ Creating PDF on-the-fly?

Posted by: Gerry Roston Jul 28 2022, 11:15 AM

Sorry if this is the wrong forum section, but...

We have a web-app for which we would like the user to be able to download a PDF file. Basically, the user enters a few bits of information, a database is accessed, and the output is created. We have figured how to make PDF from this - create the HTML then convert it to PDF and download. Easy.

However, we would like to create the PDF without first having to show the HTML and we have not found good resources describing this process. Would you kindly point us to some resources that explain how to do this. Note that the web-app is for internal use at a university, so free would be preferred...

Posted by: Christian J Jul 28 2022, 01:16 PM

Seems there are various libraries for PHP (a server-side scripting language) that let you do that, such as:

https://www.php.net/manual/en/book.wkhtmltox.php
https://www.geeksforgeeks.org/how-to-generate-pdf-file-using-php/
https://code.tutsplus.com/tutorials/how-to-generate-a-pdf-file-in-php--cms-36703

Posted by: Marta Oct 6 2022, 01:31 PM

Hello. I usually use for this
ilovepdf
smallpdf

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)