Ok, so I know you can create PDFs line by line in PHP using a lib like Zend_PDF, but what I'm ideally looking to do is take a HTML page with a print stylesheet and output that as a PDF document.
So far I've come up with two possible solutions:
Neither is absolutely ideal for what I want to do. Dompdf is a HTML rendering engine written entirely in PHP, which is about as efficient as it sounds and has ropey float support. CUPS-PDF would have a minimum requirement of a VPS since it's a system printer.
So, anyone have any alternatives?
Page 1 of 1
Creating PDFs from PHP
#2
Posted 23 January 2012 - 09:34 AM
This is a tad of a long shot as I've not done it in a long while so excuse the vagueness... If memory serves me you can get around it via XSLT although a quick Google seems to be XML -> via XSLT -> XSL-FO -> via Apache FOP -> PDF.
I'll see if I can dig up some of the code I used for this as I suspect I'll also be using it again shortly in the future.
I'll see if I can dig up some of the code I used for this as I suspect I'll also be using it again shortly in the future.
This post has been edited by CSN-UK: 23 January 2012 - 09:39 AM
- ← Material on PHP and MySQL
- Server Side (PHP, Databases, ASP.NET, etc)
- PHP Sessions Code Stopping Sessions →
Share this topic:
Page 1 of 1
Help


















