Export a html into PDF in PHP?

Possible Duplicate:
Convert HTML + CSS to PDF with PHP?

What's the fastest, cleanest and best way to export from PHP a webpage (given URL) into PDF?


Hard. You wont be able to convert HTML to PDF just like that without any manipulation. One shot may be using mPDF, but that probabliy won't satisfy your needs, since it has limited HTML functionality.

The other way would be making a screenshot of a webpage and including it in PDF document, but you'll need specialized software, or at least libray. Read further on that topic.


你可以去TCPDF。


dompdf is an HTML to PDF converter. At its heart, dompdf is (mostly) CSS 2.1 compliant HTML layout and rendering engine written in PHP domPdf

链接地址: http://www.djcxy.com/p/15580.html

上一篇: php:寻找支持html的pdf库

下一篇: 用PHP将html导出为PDF?