• 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Recommendations for PDF Creation Libraries?

Hi everyone,

I want to give users the option in my Web app to convert Web site content to a PDF to print or download.

I'm looking for recommendations for a PDF library which works well with ci, doesn't hog too much space and which has at least a decent chance of being supported for a while!

I tried MPDF and after an hour couldn't get it to work. I think some of the tutorials are out of date. If that is in fact the best one I'll spend another hour or two trying to make it work, but I'm thinking maybe there's a better option?

Thank you!

Whenever I need to generate a PDF I use DomPDF.


It really depends on your requirements as there are several PDF libraries. A recent project of mine ended up going with mPDF because of the language support.

As mentioned already, DOMPdf is pretty good and very portable since it's all in PHP. I've also had good luck with wkhtmltopdf which is a bit faster since it's a lower level command. Also, PDFtk is nice, and simple to install on a Linux server, when used in combo with [https://github.com/mikehaertl/php-pdftk]this PHP package[/url] becomes pretty simple to use.
Practical CodeIgniter 3  • CodeIgniter 4 Foundations - Coming Soon • Vulcan - CLI Tools for CI4

I use FPDF before and it works good for me Smile
God Bless CI Contributors Smile

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

Users browsing this thread:
1 Guest(s)

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.