【发布时间】:2016-01-26 06:34:58
【问题描述】:
我需要将 PDF 文档转换为 HTML 并在编辑 html 之后将此 HTML 转换为 PDF 。 我使用 'pdftohtml' ubuntu 命令(pdftohtml - 将 pdf 文件转换为 html、xml 和 png 图像的程序),如下面的 PHP 代码
<?php $output = shell_exec('pdftohtml create.pdf updated.html'); ?>
它成功地转换了整个文档,但它传递了页面顶部的所有图像。 谁能帮我做这个工作?
【问题讨论】:
-
你考虑过选项 inline_css = true 吗?
-
@AbdelrahmanWahdan .. 感谢您的友好回复.. 我怎样才能使 inline_css = true ?我是否将其添加到 shell_exec() 中; ??
标签: php html pdf html-to-pdf pdf-to-html