Php pdflib 8.0将html转换为pdf

Php pdflib 8.0将html转换为pdf,php,pdf,pdflib,Php,Pdf,Pdflib,如何使用pdflib 8.0将html转换为pdf $html = "<div style='color:red'>Hello World</div>"; $signature = $p->create_textflow($html, ""); PDFlib不是转换器,无法将HTML片段转换为PDF。如果使用Textflow,则必须将HTML属性转换为已知的PDFlib选项。根据您的输入数据,这可能是一项非常重要的任务 PDFlib exception occur

如何使用pdflib 8.0将html转换为pdf

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

PDFlib不是转换器,无法将HTML片段转换为PDF。如果使用Textflow,则必须将HTML属性转换为已知的PDFlib选项。根据您的输入数据,这可能是一项非常重要的任务

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