poleposters Posted October 24, 2008 Share Posted October 24, 2008 Hi, I want to create a PDF file using PHP. I've read a few tutorials and the results are a bit primitive. What I was hoping to do is take a HTML page (Along with styling) and convert it to a PDF. Is this possible? Link to comment https://forums.phpfreaks.com/topic/129908-creating-a-pdf-file-using-php/ Share on other sites More sharing options...
prexep Posted October 24, 2008 Share Posted October 24, 2008 Probably, but why? And you need the PDFlib library to have PHP do it. Link to comment https://forums.phpfreaks.com/topic/129908-creating-a-pdf-file-using-php/#findComment-673625 Share on other sites More sharing options...
Bluegoldfish Posted October 24, 2008 Share Posted October 24, 2008 I've used FPDF and found it very easy to use. Have a look at http://www.fpdf.org/ Link to comment https://forums.phpfreaks.com/topic/129908-creating-a-pdf-file-using-php/#findComment-674000 Share on other sites More sharing options...
poleposters Posted October 25, 2008 Author Share Posted October 25, 2008 Thanks fo the lead! While investigating fpdf I came across html2fpdf. Its more appropriate for what I want to do.I'm creating dynamically generated PDF invoices. fpdf is a bit fiddly to format.But html2fpdf just converts the html. Although it doesn't really support style sheets which is a shame.Only table based layouts. Thank you. Link to comment https://forums.phpfreaks.com/topic/129908-creating-a-pdf-file-using-php/#findComment-674404 Share on other sites More sharing options...
shage Posted October 25, 2008 Share Posted October 25, 2008 There are a ton of classes out there for this kind of thing Link to comment https://forums.phpfreaks.com/topic/129908-creating-a-pdf-file-using-php/#findComment-674409 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.