服务器端打印到 PDF (MySQL --> image --> PDF ?? ) 问题与嵌入的 中文中国人

发布于 2024-09-26 15:06:58 字数 263 浏览 1 评论 0原文

我们正在 Linux 服务器上使用 MySQL 运行 PHP 自制应用程序。

MYSQL ---> PDF

非常复杂的输出 - 有英文和中文(简体)。

我们有许多“企业”客户的系统上没有 CHI,并且无法向他们的计算机添加字体(出于安全原因)。

我们已经嵌入了字体 - 但这使得文件变得巨大(每个 PDF 4-8M)。

我很想实际打印到图像文件,然后将其 PDF 格式(这样我就不必嵌入字体)

有什么建议吗?

We're running PHP homegrown app on linux server with MySQL.

MYSQL ---> PDF

Very complex output - with English and Chinese (Simplified).

We've many 'corporate' customers without CHI on their systems, and are unable to add fonts to their machines (for security reasons).

We've embedded the fonts - but that makes the files HUGE (4-8M per PDF).

I'd LOVE To actually print to an IMAGE file, and then PDF it (So that I don't have to embed fonts)

Any suggestions?

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

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

发布评论

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

评论(2

人间☆小暴躁 2024-10-03 15:06:58

“pdftkburst”将多页pdf转换为单页。

将单页 pdf“转换”为 jpg

将所有 jpg“转换”为多页 pdf

"pdftk burst" the multipage pdf to single page.

"convert" single page pdfs to jpg

"convert" all jpgs to multipage pdf

久伴你 2024-10-03 15:06:58

也许将 GD 与 imagettftext() 一起使用?

Maybe using GD with imagettftext() ?

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