[poppler] Annotation creation using Poppler

Albert Astals Cid aacid at kde.org
Tue May 26 10:32:42 PDT 2015

El Dimarts, 26 de maig de 2015, a les 11:56:30, Colin Lee va escriure:
> I am trying to highlight existing PDF text using Poppler. I used you
> example, but got stuck because my document page does not have an
> addAnnotation attribute.
>     ann = popplerqt4.Poppler.HighlightAnnotation
>     ann.setBoundary = box.boundingBox()
>     doc.page(currentPage).addAnnotation(ann)
>     {AttributeError}'Page' object has no attribute 'addAnnotation'
> I'm using Poppler version 0.29 in Python with popplerqt4. C++ examples or
> explanations are very welcome too, unless you think this issue is
> Python-related.

I think it's Python-related.

Please report it to whoever maintains the python bindings of poppler-qt4.


> Would you mind pointing me in the right direction? I'd be very grateful for
> your help.
> _______________________________________________
> poppler mailing list
> poppler at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/poppler

More information about the poppler mailing list