PDFBox - 显示 pdf 中嵌入文件的图标
我使用 Apache PDFBox 开发了一个 Java PDF 查看器。问题是,在渲染 PDF 页面时,如果页面有文件附件,则在 Adobe 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
此问题已在 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.