PDF specification defines Text annotations as a “sticky note” attached to a point in the PDF document. When closed, the annotation shall appear as an icon; when open, it shall display a pop-up window containing the text of the note.

The icon of a Text annotation is represented by its appearance stream (as a sequence of PDF drawing operators) which is optional. When an annotation doesn't have an appearance stream, it has to be provided by the viewer application. In the case of Text annotations there's a set of predefined icons that confirming readers shall provide (according to the PDF spec): Comment, Key, Note, Help, NewParagraph, Paragraph, Insert

Here is a screenshot of acroread rendering such icons:

attachment:acroread-text-annots.png

Poppler doesn't provide the appearance streams for such predefined icons. See bug http://bugs.freedesktop.org/show_bug.cgi?id=23108.

We need appearance streams for such icons, but we can just convert a svg into a PDF stream (thanks to cairo and librsvg), so having a svg file for every predefined icon would be perfect for us.

Icons should be quite simple, like the ones rendered by acroread.

Is this possible?

Design/ArtRequests/issue35 (last edited 2013-11-27 14:30:25 by WilliamJonMcCann)