[Poppler-bugs] [Bug 105692] PDF compliance: Always respect Annot Rect

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Mar 24 16:06:58 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=105692

--- Comment #4 from Tobias Deiminger <haxtibal at posteo.de> ---
Created attachment 138341
  --> https://bugs.freedesktop.org/attachment.cgi?id=138341&action=edit
Always respect Annot Rect for AnnotText icons

(2nd part of patch series - based on
https://bugs.freedesktop.org/attachment.cgi?id=138340)

Instead of forcing 24x24, always use the size of Annot Rect when drawing icons
in user space (even on first rendering - to rephrase Fabios commit message from
7684c325). It fixes the most important part of #105692, imho.

For our hardcoded icons we only need 24x24 while we're in appearance XObject
coordinate system. For user space, Gfx::drawAnnot does the transformation
(translate + scale) to whatever size and position is in Annot Rect.

Note: For the same reason the AP BBox can start at (0,0). We don't need an
offset. I changed the AP BBox to 0, 0, 24, 24. That's simpler, and other
embedded appearance streams I've seen from other PDF writers do it that way,
too.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20180324/43fbe57b/attachment.html>


More information about the Poppler-bugs mailing list