简体   繁体   中英

pdflib 8.0 convert html to pdf

How to convert html to pdf using pdflib 8.0.

$html = "<div style='color:red'>Hello World</div>";
$signature = $p->create_textflow($html, "");

Doesn't work...

PDFlib exception occurred in hello sample: [1400] create_textflow: Unknown option 'div' 

PDFlib is not a converter , and can not convert HTML fragments to PDF . If you use Textflow, you must translate the HTML attributes into known PDFlib options. Depending on your input data, this can be a non-trivial task.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM