使用 ABCpdf 从 HTML 创建的 PDF 文件中刚刚开始出现问号

发布于 2024-09-26 22:51:30 字数 522 浏览 0 评论 0原文

我在虚拟专用 Windows Server 2003 SP2 机器上有一个基于 Web 的应用程序 (ASP.NET 2.0),它可以转换 HTML 表单并使用 ABCpdf 将其转换为 PDF。它已经存在很多年了,并且至少在过去的两年里没有改变。

三天前,它开始在输出的 PDF 文档中添加问号。

问号似乎与 HTML 中的空 span 标签相对应。关于为什么会发生这种情况,或者我可能需要做什么来解决它,有什么想法吗?

更新 ------------

html 是通过 xsl 生成的,并立即用于生成 pdf。

事实上,我确实有这个角色  在出现问号的位置。然而,由于这是一种编码非空白空格的方式,所以我在 html 中只能看到一个空格(即使在打开记事本++中查看所有符号时也是如此)。

当我更换  在 xsl 代码中使用简单空格字符的实例中,问号消失了。

注意:我还可以使用 charset="iso-2022-jp" 使问号从最终的 pdf 中消失,但是,中间的 html 显示日语字符。

I have a web based application (ASP.NET 2.0) on a virtual dedicated Windows Server 2003 SP2 box, that converts HTML forms and converts them to PDF using ABCpdf. It has been around for years, and hasn't been changed for at least the last two of those years.

Three days ago it started placing question marks throughout the outputed PDF documents.

The question marks seem to correspond with empty span tags in the HTML. Any ideas on why this might be happening, or what I might need to do to resolve it?

UPDATE ------------

The html is generated via xsl and immediately used to generate a pdf.

I did, in fact, have the character   in the positions where the question mark was appearing. However, since this is a way of encoding a non-blanking space, all I could see in the html was a blank space (even when turning on see all symbols in notepad++).

When I replace the   instances in the xsl code with a simple space character, the question marks went away.

Note: I was also able to make the question marks disappear from the final pdf by using charset="iso-2022-jp" However, the intermediate html showed Japanese characters.

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

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

发布评论

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

评论(1

凹づ凸ル 2024-10-03 22:51:30

ABCpdf 使用本机的 IE 引擎来加载和渲染 html。您是否更新了机器上的IE浏览器版本?当然,这与 IE 浏览器有关(因为你说你没有对 xsl / html 进行任何更改)。

谢谢,
弗洛雷斯

ABCpdf uses the IE engine from the machine to load and render the html. Have you updated the IE browser version on the machine? For sure it's something related to the IE browser (since you say you made no changes to your xsl / html).

Thanks,
Flores

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