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.
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.
Advertisement
Answer
Turns out the bindings were incomplete. It is now fixed. https://bugs.launchpad.net/poppler-python/+bug/397850