How can I create a pdf file from html5 + css3?

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

I need convert an html + css to pdf. The target is generate an invoice.


After googling html page to pdf in php The first link was this:

Convert HTML + CSS to PDF with PHP?

Here they advice PrinceXML. Be sure to google first next time, since these things aren't hard to find.


use this

http://html2pdf.fr/en/default

$html = file_get_contents("valid.html");
require_once("html2pdf.class.php");
$html2pdf = new HTML2PDF("P", "A4", "en", array(10, 10, 10, 10));
$html2pdf->setEncoding("ISO-8859-1");
$html2pdf->WriteHTML($html);
$html2pdf->Output("pdf/PDF.pdf", "F"); //output to file
$html2pdf->Output(); //output to browser
链接地址: http://www.djcxy.com/p/15592.html

上一篇: 将HTML页面转换为PDF

下一篇: 我怎样才能从html5 + css3创建一个PDF文件?