Joomla-pdf-document-view

Joomla universal pdf render(dompdf, mpdf, tcpdf, wkhtmltopdf)


Project maintained by studio42 Hosted on GitHub Pages — Theme by mattgraham

DOWNLOAD IT - Return to home Page

joomla-pdf-document-view

Joomla universal pdf render(dompdf, mpdf, tcpdf, wkhtmltopdf).

The joomla library extention provide a solution to make PDF view & file.

Four HTML to PDF converter tested in joomla 2.5.

Render Quality

I have optimized a little the css to achive the same final quality

You can download, the 4 real output tested

and compare to the real html screenshot
The screenshot have a little bug, the footer is idsplayed over the page, but the bug is not on the real html render

Full time document render

The first part include all document render time, this mean included Joomla, Virtuemart 2.0 and the engine and give so to say the total waiting time for the user.

File size : 89804 bytes
Time Elapsed: 3.1796038150787s Engine : mpdf D:\WEB\wamp\www\joomdemo/images/Apple iPad 4 Retina Display.pdf
File size : 67840 bytes
Time Elapsed: 3.7668688297272s Engine : tcpdf D:\WEB\wamp\www\joomdemo/images/Apple iPad 4 Retina Display.pdf
File size : 98493 bytes
Time Elapsed: 4.726184129715s Engine : dompdf D:\WEB\wamp\www\joomdemo/images/Apple iPad 4 Retina Display.pdf
File size : 76105 bytes
Time Elapsed: 2.3424270153046s Engine : wkhtmltopdf D:\WEB\wamp\www\joomdemo/images/Apple iPad 4 Retina Display.pdf

Final engine render

This part include only the engine render and give the real time to create the PDF.I don't have removed all unneeded Css or image but it's a bit optimized

File size : 89804 bytes
Time Elapsed: 2.5918400287628s Engine : mpdf D:\WEB\wamp\www\joomdemo/images/Apple iPad 4 Retina Display.pdf
File size : 67840 bytes
Time Elapsed: 3.1373960971832s Engine : tcpdf D:\WEB\wamp\www\joomdemo/images/Apple iPad 4 Retina Display.pdf
File size : 98493 bytes
Time Elapsed: 4.1265690326691s Engine : dompdf D:\WEB\wamp\www\joomdemo/images/Apple iPad 4 Retina Display.pdf
File size : 76105 bytes
Time Elapsed: 0.97784686088562s Engine : wkhtmltopdf D:\WEB\wamp\www\joomdemo/images/Apple iPad 4 Retina Display.pdf

Conclusion

tcpdf is actually not a good alternative. It's slow, the document is smallerbut do not includes background images, extra CSS and have a poor CSS compatibility(output is poor)
mpdf Can do a good Result, but with some html/css optimisation, this mean on a complex template, tweaking your layout in case of PDF output.
dompdf Have a better quality, but is the slowest, is a correct choice when you use it time to time. Especially if you cannot install wkhtmltopdf or want esay header and footer setup.
wkhtmltopdf Simply the best, the fastest but have to be installed(if you can) on your linux server and not only as a PHP class.

Tested on Intel(R) Core(TM) i7 870/2.93GHz 4 cores, 4 Go Memory, Windows 7, Apache/2.2.17 (Win32), PHP 5.3.4