开发者

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

I need to dinamicaly generate a PDF from HTML, but I have PDF Support disabled on my hosting, so is 开发者_如何学Cit possible to do without PDFlib GmbH library?

Thanks


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.


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


An other nice option is dompdf, which is a HTML to PDF converter and is (almost) CSS 2.1 compliant. It can be used either using PDFLib or the R&OS CPDF class


You could also checkout htmldoc:

Project page

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜