解析pdf中的注释 [英] Parse annotations from a pdf

查看:85
本文介绍了解析pdf中的注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想要一个带pdf并返回文档中注释注释文本列表的python函数.我看过python-poppler( https://code.launchpad.net/〜poppler-python/poppler-python/trunk ),但我不知道如何获得它来给我有用的东西.

I want a python function that takes a pdf and returns a list of the text of the note annotations in the document. I have looked at python-poppler (https://code.launchpad.net/~poppler-python/poppler-python/trunk) but I can not figure out how to get it to give me anything useful.

我找到了get_annot_mapping方法,并修改了通过self.current_page.get_annot_mapping()调用它的演示程序,但是我不知道该如何处理AnnotMapping对象.它似乎还没有完全实现,仅提供了复制方法.

I found the get_annot_mapping method and modified the demo program provided to call it via self.current_page.get_annot_mapping(), but I have no idea what to do with an AnnotMapping object. It seems to not be fully implemented, providing only the copy method.

如果还有其他提供此功能的库,也可以.

If there are any other libraries that provide this function, that's fine as well.

推荐答案

原来,绑定不完整.现在已修复. https://bugs.launchpad.net/poppler-python/+bug/397850

Turns out the bindings were incomplete. It is now fixed. https://bugs.launchpad.net/poppler-python/+bug/397850

这篇关于解析pdf中的注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆