-----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@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. 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 [email protected] > 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/ iQEcBAEBAgAGBQJQbAIxAAoJEPSSjE3STU34spIH/AwCxYeIFMuMr30p0kzEWqiv dOwl1FHtpKZFYKWA0lFsJyC5QFTIfpHoloAn1wErGs7xm5vNNwFHa0E/GMVFmx87 fRsKU/O8fEYAM+0n8mJ3qy0Ej9/H3yJxVhYvguHh6k64AfyJTlH5DvH4Sw74Nanu L0V6Bb1FQxM2dAny7bY2+vyLOHDj44TwxE/EcGH6MCo4QIYNTSKdBByN+YIXv4Q+ Br/+/v5TUzJIP4wHgp8wfCGP/Q6YeL3oDXX/FjROn9hRhDwVjkYNW4oVe6fYEnlt FlJ2Z13+TVd1/07udG/edUdxaprxDMWxba4ZVikszpS5Llyd8qXIocg1ktDL0HQ= =UXXk -----END PGP SIGNATURE----- _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
