|PDF Imposition in PHP||#1|
I(m looking for a
library that will allow me to create a print-ready
. The imposition should include 1-up, 4-up, 24-up, etc. layouts, and crop marks.
libraries allow me to create an image and plop it on a PDF, but the more advanced layouts and crop marks are a bit beyond me.
Thanks in advance!
posted date: 2008-09-17 16:10:00
|Re: PDF Imposition in PHP||#3|
http://www.pdflib.com/download/Here is a library you didn(t mention that will allow the creation of PDFs using php. Hope it(s sufficient.
posted date: 2008-09-17 16:14:00
|Re: PDF Imposition in PHP||#4|
I(ve had a lot of success with PDFLib it(s a very powerful library with PHP (and C, C#, Perl etc) bindings.
posted date: 2008-09-17 16:16:00
|Re: PDF Imposition in PHP||#5|
FPDF has always worked out for me. There is a lot of robust functionality in there, and you just gotta keep at it to find it. The ImageEPS class extension is VERY useful for making things print ready, though it is not without its issues (as its a rather old extension and doesn(t support .ai and .eps files very well, save as backwards compatible as you can.) You can use the drawing features to generate crop marks. Header and footer set up is a bit counter-intuitive but it works. (http://www.fpdf.org/en/tutorial/tuto2.htm) The orientation of the pages and the sizing are pretty easy to set.(http://www.fpdf.org/en/doc/fpdf.htm)Multicell is a VERY useful function for dynamically generated content, though there is no way of handling overflow built it. You(ll have to have some way of doing character counts and passing the data into blocks for complex layouts.I believe there is an extension in the forums for pagination. (http://www.fpdf.org/en/script/script86.php)plus I(m a cheapskate :)
posted date: 2008-09-17 16:35:00
|Re: PDF Imposition in PHP||#6|
We used DOMPDF http://www.digitaljunkies.ca/dompdf/ successfully - just define what you want printed in regular HTML format, then pass the doc to DOMPDF, and it(ll create a PDF from it. Much more convenient than working with vector-based solutions that require you to essentially lay things out yourself on the page (like FPDF). Use HTML for layout! It(s much easier.
posted date: 2008-09-17 17:06:00
|Re: PDF Imposition in PHP||#7|
I(d highly recommend DOMPDF or PDFLib as others have mentioned.DOMPDF supports XHTML and CSS2.1 and will allow you to render a PDF page from HTML.PDFlib+PDI will allow you to merge PDF documents or append pages, place images, text, etc.
posted date: 2009-01-14 15:57:00
|Re: PDF Imposition in PHP||#8|
phpLiveDocx does exactly what you want. It is dead easy to use and allows you to populate templates created in a word processor with data in PHP. Learn more at http://www.phplivedocx.org/articles/brief-introduction-to-phplivedocx/
posted date: 2009-02-05 05:16:00
|Re: PDF Imposition in PHP||#9|
that is simply awesome :-)
posted date: 2012-10-09 06:21:00
|select page: « 1 »|