Tuesday, January 27, 2009

DOMPDF Vs TCPDF

In this post I would like to discuss about the html to PDF converter using php.
There are 2 main classes available on the net.

1. DOMPDF (http://www.digitaljunkies.ca/dompdf/downloads.php)
2. TCPDF (http://tcpdf.sourceforge.net)

Sharing personal experience with you regarding to the both classes.

1. Dompdf:
  1. It is a primitive class for html to pdf conversion. But it has not been updated since 2 years.
  2. This class cannot handle pages properly.
  3. Configuration hassle.
  4. Images manipulation is not perfect.
  5. It takes a lot of memory and loading time.
  6. Easy to code.
2. TCPDF:
  1. Easy to configure.
  2. It can handle graphs.
  3. It supports PDF commands.
  4. It can convert html to pdf forms.
  5. CSS reading capability is superb.
  6. Html handling is much better than DOMPDF.
  7. Images manipulation is very good.
  8. Require understanding with the code.
  9. Loads fast as compared to DOMPDF.
  10. It does not require any other library or specs.
  11. For image manipulation it uses GD2 Lib.
You can guess the answer. I prefer TCPDF instead of DOMPDF.

Thanks.

1 comment:

  1. Yep, dompdf is not a panacée, I hope tcpdf is worth to check because there is nothing else valuable in the php html conversion world.

    Did youy have a look at the jodconverter solution ?

    ReplyDelete

All rights are reserved. Nobleatom.com
Software Development Services.
Contact me: khubabmazhar596@hotmail.com

Web Design Increase Page Rank Internet blogs DigNow.net web directory1Abc DirectorySeo friendly web directory