[英]pdflib 8.0 convert html to pdf
How to convert html to pdf using pdflib 8.0. 如何使用pdflib 8.0将html转换为pdf。
$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 . PDFlib 不是转换器 ,并且不能将HTML片段转换为PDF 。 If you use Textflow, you must translate the HTML attributes into known PDFlib options.
如果使用Textflow,则必须将HTML属性转换为已知的PDFlib选项。 Depending on your input data, this can be a non-trivial task.
根据您的输入数据,这可能是不平凡的任务。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.