Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I generate a PDF from HTML without the PDFlib library?

Tags:

php

pdf

I need to dinamicaly generate a PDF from HTML, but I have PDF Support disabled on my hosting, so is it possible to do without PDFlib GmbH library?

Thanks

like image 447
Simon Avatar asked Jun 05 '10 12:06

Simon


2 Answers

There are many packages, but as I gather you're not able to install extra libs on your hosting. Options would be FPDF if you feel like rewriting your whole HTML into blocks, TCPDF if you feel a bit less masochistic, which has some limited html/css support.

like image 141
Wrikken Avatar answered Oct 03 '22 21:10

Wrikken


The most common alternative is FPDF. It is pure PHP and needs no installed extensions.

like image 23
Pekka Avatar answered Oct 03 '22 20:10

Pekka