【问题标题】:pdflib 8.0 convert html to pdfpdflib 8.0 将 html 转换为 pdf
【发布时间】:2018-05-17 03:38:08
【问题描述】:

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

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

没用……

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

【问题讨论】:

    标签: php pdf pdflib


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2011-09-02
      • 2010-12-31
      • 1970-01-01
      • 2016-12-01
      • 2014-11-16
      • 2017-07-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多