Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP PDF Generator Advice [closed]

Tags:

php

pdf

Can anybody advise on the best PDF generator class/library to use with PHP? Preferably one which is maintained.

I am aware that this is a duplicate of the following question, however, the accepted answer is over 3 years old and I want to know whether the answer has changed since this time.

Which one is the best PDF-API for PHP?

Thank you

like image 869
Ben Carey Avatar asked Sep 10 '12 10:09

Ben Carey


2 Answers

Try TCPDF, have good features http://www.tcpdf.org/examples.php

Also simple HTML to PDF Converter API in (PHP, C#, ASP.net C#, ASP VB.net, JAVA,...)

from "PDF CROWD" http://pdfcrowd.com/html-to-pdf-api/

very simple to use, but I think this API may need to purchase even they provide a free test account..

like image 114
Mohamed Navas Avatar answered Nov 05 '22 16:11

Mohamed Navas


Have you tried http://www.PDFnow.com?

Provides a powerful template engine, and is pretty easy to use.

Supports complex layouts, layouts for multiple pages, invoices spreading separate pages, pagenumbers, headers, footers, etc. Definitively much better than fpdf.

You can simply integrate it into your PHP code by:

generatePdf(<templateName>, <ParameterArray>);

very straightforward.

like image 22
Peter Es Avatar answered Nov 05 '22 14:11

Peter Es