PHP and output to PDF
May 10, 2009One of the things I really wanted to add to my basketball statistics program was the possibility to export statistics for a game to a PDF file. After the initial thought a long search on the internet was needed to find a good class that can generate PDF files.
Nearly every class I have tried have some severe or minor flaws in the generated file. After much searching and trail & error I decided to stick with mPDF,based on FPDF, HTML2FPDF, and UFPDF, with a number of enhancements.
Although several CSS tweaks, for example the use of background images in tables, aren’t supported yet, this was the only class that actually made something readable from the HTML output I presented it with. If you’re interested in seeing an example of the output, you can find it here (700kB).