Personally i'd rather go with tcpdf which is an ehnanced and mantained version of fpdf.
1 you didn't specify reasons - one huge one is Unicode support in tcpdf, which fpdf utterly lacks. Tcpdf is also still actively maintained. And, it's also got a decent OO architecture.
Word to the wise: fpdf is basically an old thing that got superseded by tcpdf. – zanlok Dec 13 '10 at 22:18 tcpdf is missing critical features like font embedding and subsetting (important for asian languages). – velcrow Aug 31 at 22:33.
The Zend Framework's Zend_Pdf is really good too. It's on par with pdflib in terms of control of output and complexity and is more portable because its a pure php solution. That said, its slower and uses more memory than pdflib.
Pecl modules are always more efficient than a php solution. DOMPdf is the easiest way to make a pdf quickly. Like Mike said, feed it html and it outputs a pdf.
Under the hood, it has the option to use either r&ospdf or pdflib as the rendering engine.
I'm using ezpdf. It's a pdf class, fast and very easy to use. Also it has a good manual with examples.
From the mpdf site: "mPDF is a PHP class which generates PDF files from UTF-8 encoded HTML. It is based on FPDF and HTML2FPDF, with a number of enhancements. " mpdf is superior to FPDF for language handling and UTF-8 support.
For CJK support it not only supports font embedding, but font subsetting (so your CJK PDFs are not oversized). TCPDF and FPDF have nothing on the UTF-8 and Font support of mpdf. It even comes with some open source fonts as of version 5.0.
This is just a quick review of how fPDF stands up against tcPDF in the area of performance at each libraries most basic functions. SPEED TEST 17.0366 seconds to process 2000 PDF files using fPDF || 79.5982 seconds to process 2000 PDF files using tcPDF FILE SIZE CHECK (in bytes) 788 fPDF || 1,860 tcPDF The code used was as identical as possible and renders just a clean PDF file with no text. This is also using the latest version of each library as of June 22, 2011.
Try TCPDF. I find it the best so far. For detailed tutorial on using the two most popular pdf generation classes: TCPDF and FPDF.. please follow this link: PHP: Easily create PDF on the fly with TCPDF and FPDF Hope it helps.
We had to solve this problem for a client website a while back, and it was surprisingly non-trivial, so we've built the solution into a SAAS product. You just pass our service the URL of the page you want to produce as a PDF, and it returns it. It can cope with complex layouts, interprets CSS, and allows javascript to execute before render.
There are also a number of options such as security, margins and footers that can be customised. fourpdf.com/ Jake.
Tx for this info – Mamadou Feb 3 at 9:10.
I found mpdf better than tcpdf in terms of html rendering. It can parse css styles much better and create pdf that look very similar to the original html. Mpdf even supports css things like border-radius and gradient etc.I am surprised to see why mpdf is so less talked about when it comes to html to pdf.
Check out the examples here mpdf1.com/mpdf/examples I found it useful for designing invoices, receipts and simple prints etc. However the website itself says that pdfs generated from mpdf tend to be larger in size.
I personally generate XSL:FO from PHP and use Apache FOP to convert it to PDF. Not a PHP-native solution, not very efficient either, but it works well even if you need to generate PDF with very complex layouts.
Personally I prefer to use digitaljunkies.ca/dompdf/ dompdf for simple PDF pages as it is very quick. You simply feed it an HTML source and it will generate the required page. However for more complex designs I prefer the more classic pdflib.com/ pdflib which is available as a pecl for PHP.It has greater control over designs and allows you do do more complex designs like pixel-perfect forms.
sourceforge.net/projects/html2ps/, is the best if you need the css and 3c compatibily. If you can install software on your server, I suggest you to use code.google.com/p/wkhtmltopdf/. There is also a drupal module using wkhtmltopdf :) PHP take many resources to convert html in pdf, imho, php is not the right language to do that (if you expect a large numbers of coversion or large files to convert).
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.