Tuesday, July 14, 2009

How can we convert a DIV based web page to PDF in PHP?

Is there any way to convert a DIV based web page to PDF in PHP. I used dompdf and html2fpdf but both are working fine for table based structure but failed for div based design specially left and top positioning of the DIV.



Please help any way to make pdf from html code specially DIV based html code.



Any helps regarding dompdf are also helpful to me.



How can we convert a DIV based web page to PDF in PHP?





This script you should use to do it.



http://www.rustyparts.com/pdf.php



from html to pdf



How can we convert a DIV based web page to PDF in PHP?



If the site can print, I%26#039;d suggest downloading a Print to PDF program. Which would allow you to print the object as a PDF. Which would then allow you to keep the file in a PDF format.



If you are unable to print, you may have to think about screen capturing the data you intend to save, and then placing it in a different document type and then saving as a PDF.



If you aren%26#039;t worried about keeping it%26#039;s format, you might consider, printing the source code of the site, to at least get the text based data of the site.

No comments:

Post a Comment