[poppler] Annotation interoperability
Albert Astals Cid
aacid at kde.org
Wed Oct 3 11:15:09 PDT 2012
El Dimecres, 3 d'octubre de 2012, a les 11:15:29, Adam Reichold va escriure:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> Hello again,
> 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
> activate it...
> Maybe it is sensible to enforce one way of cropping in the Qt4
> frontend of Poppler? Not sure about this though.
Let's wait to see if Fabio is around to give an informed answer.
> Best regards, Adam.
> On 02.10.2012 18:31, Adam Reichold wrote:
> > Hello,
> > 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
> > like:
> > Poppler::TextAnnotation* annotation = new
> > Poppler::TextAnnotation(Poppler::TextAnnotation::Linked);
> > annotation->setBoundary(boundary);
> > annotation->setContents(contents);
> > page->addAnnotation(annotation);
> > 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
> > http://lists.freedesktop.org/mailman/listinfo/poppler
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.19 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
> -----END PGP SIGNATURE-----
> poppler mailing list
> poppler at lists.freedesktop.org
More information about the poppler