在 64 位 Windows 上运行 32 位可执行文件时出现问题

发布于 2024-09-01 07:51:39 字数 1266 浏览 6 评论 0原文

如果允许的话,我会添加 500 个自己的代表作为赏金。

我正在使用 wkhtmltopdf 将 HTML 网页转换为 PDF。这在我的 32 位开发服务器上完美运行 [不幸的是,我无法运送我的机器:-p]。但是,当我部署到 Web 应用程序的 64 位服务器时,会显示以下错误: (从cmd.exe运行)

C:\>wkhtmltopdf http://www.google.com google.pdf
Loading pages (1/5)
QFontEngine::loadEngine: GetTextMetrics failed ()            ] 10%
QFontEngineWin: GetTextMetrics failed ()
QFontEngineWin: GetTextMetrics failed ()
QFontEngine::loadEngine: GetTextMetrics failed ()
QFontEngineWin: GetTextMetrics failed ()
QFontEngineWin: GetTextMetrics failed ()
QFontEngineWin: GetTextMetrics failed ()
QFontEngine::loadEngine: GetTextMetrics failed ()            ] 36%
QFontEngineWin: GetTextMetrics failed ()
QFontEngineWin: GetTextMetrics failed ()
// ...etc....

并且PDF被创建并保存......只是没有文本。所有表单字段、图像、边框、表格、div、span、ps 等都准确呈现......只是完全没有任何文本。

服务器信息:

    Windows edition: Windows Server Standard Service Pack 2
    Processor: Intel Xeon    E5410 @ 2.33GHz 2.33 GHz
    Memory: 8.00 GB
    System type: 64-bit Operating System

任何人都可以告诉我发生了什么以及如何解决这个问题吗?

此外,我不确定用什么来标记/标题这个问题......所以如果您能想到更好的标签/标题,请评论它们或编辑问题。 :-)

I'll add 500 of my own rep as a bounty when SO lets me.

I'm using wkhtmltopdf to convert HTML web pages to PDFs. This works perfectly on my 32-bit dev server [unfortunately, I can't ship my machine :-p ]. However, when I deploy to the web application's 64-bit server the following errors are displayed:
(running from cmd.exe)

C:\>wkhtmltopdf http://www.google.com google.pdf
Loading pages (1/5)
QFontEngine::loadEngine: GetTextMetrics failed ()            ] 10%
QFontEngineWin: GetTextMetrics failed ()
QFontEngineWin: GetTextMetrics failed ()
QFontEngine::loadEngine: GetTextMetrics failed ()
QFontEngineWin: GetTextMetrics failed ()
QFontEngineWin: GetTextMetrics failed ()
QFontEngineWin: GetTextMetrics failed ()
QFontEngine::loadEngine: GetTextMetrics failed ()            ] 36%
QFontEngineWin: GetTextMetrics failed ()
QFontEngineWin: GetTextMetrics failed ()
// ...etc....

and the PDF is created and saved... just WITHOUT text. All form-fields, images, borders, tables, divs, spans, ps, etc are rendered accurately...just void of any text at all.

Server information:

    Windows edition: Windows Server Standard Service Pack 2
    Processor: Intel Xeon    E5410 @ 2.33GHz 2.33 GHz
    Memory: 8.00 GB
    System type: 64-bit Operating System

Can anyone give me a clue as to what is happening and how I can fix this?

Also, I wasn't sure what to tag/title this question with...so if you can think of better tags/title comment them or edit the question. :-)

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

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

发布评论

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

评论(1

怼怹恏 2024-09-08 07:51:40

好吧,正确的答案是重新启动生产服务器。某些字体服务一定因某种未知原因悄然崩溃了。愿这对我们所有人来说都是一个教训。

Well, the correct answer was just to restart the Production server. Some font-service must have silently crashed for some unknown reason. May this be a lesson to us all.

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