[poppler] Annotation interoperability
adamreichold at myopera.com
Wed Oct 3 02:15:29 PDT 2012
-----BEGIN PGP SIGNED MESSAGE-----
This sort of resolved itself after some more fiddling around: The
problem was that Okular crops a text annotation boundary to
24x24 at 72dpi from the top left corner whereas Poppler crops it from the
bottom left corner. Hence you had to click into "empty space" to
Maybe it is sensible to enforce one way of cropping in the Qt4
frontend of Poppler? Not sure about this though.
Best regards, Adam.
On 02.10.2012 18:31, Adam Reichold wrote:
> This is not exactly Poppler only but more interoperability between
> programs using Poppler, specifically Okular and qpdfview. It
> concerns the correct usage of the annotation API. Sorry for being
> vaguely off-topic.
> Currently, to add a text annotation, I basically do something
> Poppler::TextAnnotation* annotation = new
> This seems to work fine with qpdfview and Adobe's acroread. But
> opened in Okular, it just displays an inert annotation icon with no
> way of accessing its contents.
> So my two questions are: What is the mandatory contents for a valid
> text annotation? (Does it need a popup? Or a window? acroread seems
> to like it but then acroread has its own ideas about the PDF
> standard anyway.) What does Okular need to make the contents of a
> text annotation accessible?
> Thanks for your help! Best regards, Adam.
> P.S.: I tried to have a look at the Okular source code,
> specifically the Poppler generator. But I suppose this has
> something to do with the assumption on text annotations in the UI
> part of it. So any hints for where to search there would be
> appreciated as well.
> _______________________________________________ poppler mailing
> list poppler at lists.freedesktop.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
-----END PGP SIGNATURE-----
More information about the poppler