使用远程图像和样式表将 PHP HTML 内容转换为 DOC/PDF

发布于 2024-10-08 18:42:45 字数 137 浏览 0 评论 0 原文

我正在寻找一个轻松的脚本,可以将 HTML 文件转换为 Microsoft Word 或 PDF 格式。我的下载脚本已经可以运行,但是当我尝试在 MS Word 中打开下载的文档时,图像被标记为 X,并且提示缺少文件。

你能建议任何替代方案吗?

I'm looking for a hassle-free script that can convert an HTML file to Microsoft Word or PDF format. My download script works already, but when I tried to open the downloaded document in MS Word the images are labeled X, and it prompted for missing files.

Can you suggest any alternative?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

懒猫 2024-10-15 18:42:45

看看 PrinceXML。

它绝对是最好的 HTML/CSS 到 PDF 转换器,尽管它不是免费的(但是嘿,您的编程也不是免费的,因此,如果它可以节省您 10 个小时的工作时间,您就可以自由回家了。)

哦,是的,我是否提到过,这是第一个(也可能是唯一一个)可以执行完整操作的 HTML2PDF 解决方案 ACID2!

http://princexml.com/samples/

此答案复制自此处;最初由用户 SchizoDuckie 编写

Have a look at PrinceXML.

It's definitely the best HTML/CSS to PDF converter out there, although it's not free (But hey, your programming is not free either, so if it saves you 10 hours of work, you're home free.)

Oh yeah, did I mention that this is the first (and probably only) HTML2PDF solution that does full ACID2!?

http://princexml.com/samples/

This answer copied from here; originally written by user SchizoDuckie

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文