处理 PDF 中的注释查看需要什么?
大家好,我正在解析 PDF 内容流,以便能够读取和处理注释运算符并添加这些运算符。任何人都可以阐明如何在不使用预构建库的情况下执行此操作吗?我知道这是一项艰巨的工作,但任何指示将不胜感激。
注意:我已经阅读了 Adobe 的大量 PDF 参考资料,并且大部分了解文件作为对象树的概念,但我不明白如何确定注释是否存在(我是否错过了)参考文献中的这个运算符?)另外,对于回调函数本身应该负责什么有什么帮助吗?感谢您的帮助。
Hey everyone, I am working on parsing the PDF content stream to be able to read and handle annotation operators and also to add these. Can anyone shed some light on how to go about doing this, without using a prebuilt library? I understand it is a daunting exercise, but any pointers would be appreciated.
Note: I've read a fair amount of the PDF Reference from Adobe, and mostly understand the concept of the file being an object tree, yet I don't understand how to go about figuring out if an annotation is there ( did i miss this operator in the reference? ) Also, any help on what the callback functions themselves should be responsible for? Thanks for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我写了一篇关于表单和注释的文章,其中包含一些关于它们如何存在于 PDF 文件中的有用的一般描述。链接是 http: //pdf.jpedal.org/java-pdf-blog/bid/42171/Understanding-the-PDF-file-format-interactive-elements
I wrote an article on Forms and Annotations which contains some useful general description on ho they exist in the PDF file. Link is http://pdf.jpedal.org/java-pdf-blog/bid/42171/Understanding-the-PDF-file-format-interactive-elements
请参阅 PDF 参考 1.7 版的第 3.6.2 节。每个带有注释的页面树节点都有一个“Annots”键,其中包含该页面的注释数组。每个注释都指向其在页面上的位置,而不是在内容流中包含页面运算符。
Look at section 3.6.2 of the PDF Reference, version 1.7. There is a "Annots" key for each Page tree node with annotations that contains an array of the annotations for that page. Each annotation points to its location on the page rather than having a page operator in the content stream.