Jason K. Flaherty
Jason K. Flaherty

Reputation: 66

HTML+PDF to PDF output using PHP

I've managed to convert an HTML page to PDF document data. Now, I'm adding an upload for PDFs to be included in this document data. I'm looking to find the best way to do this and haven't found anything that works just right. Here are the specifics:

I've tried a few different approaches, each with their own drawbacks:

I'm using DOMPDF for the HTML to PDF conversion. For I've tried PDFLib, FPDI and ImageMagick/GhostScript (image conversion). Maybe this is a shot in the dark, but does anyone know of a better way?

Upvotes: 4

Views: 857

Answers (2)

wmarbut
wmarbut

Reputation: 4705

IBM recommends FPDF in their developer works article here. You can find the library here: http://www.fpdf.org/

Upvotes: 1

John Haugeland
John Haugeland

Reputation: 9688

I'm a huge fan of PrinceXML, but it's not free.

Upvotes: 1

Related Questions