tmyonline Posted October 9, 2008 Share Posted October 9, 2008 Hi guys: I was asked to add the "print as PDF" functionality to our website. The code that generates the website is PHP. I have used the htmlDOC software package to convert the web pages from HTML to PDF. It worked but there are limitations because htmlDOC does not support CSS. As a result, some parts of the webpage(s) got printed and others did not. I heard that PHP has a PDF library that supports this conversion. Is there any particular PHP function that enables me to perform this conversion (from HTML to PDF) ? Thanks. Link to comment https://forums.phpfreaks.com/topic/127726-php-function-to-print-generate-pdf-file/ Share on other sites More sharing options...
RedMist Posted October 9, 2008 Share Posted October 9, 2008 Check out http://www.fpdf.org/ I used it recently and it's reasonably easy. Link to comment https://forums.phpfreaks.com/topic/127726-php-function-to-print-generate-pdf-file/#findComment-661098 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.