PDFBox - 显示 pdf 中嵌入文件的图标

发布于 2025-01-15 13:32:57 字数 196 浏览 5 评论 0原文

我使用 Apache PDFBox 开发了一个 Java PDF 查看器。问题是,在渲染 PDF 页面时,如果页面有文件附件,则在 Adob​​e PDF 阅读器中打开此类文件时,PDFBox 渲染中不会显示任何图标,就像有回形针图标一样。 是否可以使用 PDFBox 在渲染中自动添加此类图标?我想我不久前看到过这样的代码,就像一行打开和关闭此行为的代码,但我找不到它。谢谢。

I developed a Java PDF viewer using Apache PDFBox. The problem is, when rendering a page of a PDF, if the page has file attachments, there is no icon shown in PDFBox rendering, like there is a paper clip icon, when such a file is opened in Adobe PDF reader.
Is it possible to automatically have such icons in the rendering using PDFBox? I think I saw such a code some time ago, like a single line that switches this behavior on and off but I can't find it. Thanks.

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

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

发布评论

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

评论(1

半衬遮猫 2025-01-22 13:32:57

此问题已在 PDFBOX-5394 中修复,并将在版本 2.0.26 中修复。然而,此时仅显示一个符号:固定尺寸的回形针。

This was fixed in PDFBOX-5394 and will be in the version 2.0.26. However only one single symbol will be shown at this time: a paperclip in fixed size.

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