[Poppler-bugs] [Bug 89136] New: Annotations of /Subtype /Popup are not added to /Annots array of a page
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Feb 13 04:47:55 PST 2015
https://bugs.freedesktop.org/show_bug.cgi?id=89136
Bug ID: 89136
Summary: Annotations of /Subtype /Popup are not added to
/Annots array of a page
Product: poppler
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: glib frontend
Assignee: poppler-bugs at lists.freedesktop.org
Reporter: philipp.reinkemeier at offis.de
Created attachment 113460
--> https://bugs.freedesktop.org/attachment.cgi?id=113460&action=edit
PDF with broken annotation created using evince (via glib-frontend)
An annotation of /Subtype /Popup can be created and associated with a Markup
annotation (e.g. /Subtype /Text) by using poppler_annot_markup_set_popup().
However, this Popup annotation is not an explicit object of the API of the glib
frontend. This means currently, this annotation cannot be added to a pdf page
using poppler_page_add_annot (). Only the Markup annotation can be added.
But ALL annotations of a pdf page need to be referenced from an /Annots array
(see pdf specification). Poppler fills this array by keeping track of all
annotations that have been added to a page. So if
poppler_annot_markup_set_popup() is used to create a Popup annotation and link
it to a Markup annotation (say "annot"), and "annot" is added to a page, then
the Popup annotation is missing in the /Annots array of that page.
Btw.: This is how text annotations are currently implemented in evince.
The resulting pdf is NOT correct with respect to the pdf specification. The
effect is that an annotation created by evince has no popup window in acrobat
reader. In evince and okular it has a popup window. It seems that poppler is
more forgiving when loading such a pdf and accepts that the Popup annotation is
missing in the /Annots array.
The attached uncompressed pdf is a minimal test case. It contains a pdf
annotation of Subtype Text created using evince. If this pdf is opened in
acrobat reader, no popup window is shown when clicking on the annotation. If
one now manually adds the annotation of Subtype Popup to the /Annots array,
then everything works fine.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20150213/3f29f18a/attachment.html>
More information about the Poppler-bugs
mailing list