[Poppler-bugs] [Bug 107584] New: Font disregarded in Freetext annotation with default appearance (DA) but without appearance stream (AP)
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed Aug 15 16:23:26 UTC 2018
https://bugs.freedesktop.org/show_bug.cgi?id=107584
Bug ID: 107584
Summary: Font disregarded in Freetext annotation with default
appearance (DA) but without appearance stream (AP)
Product: poppler
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: general
Assignee: poppler-bugs at lists.freedesktop.org
Reporter: oliver.sander at tu-dresden.de
Created attachment 141117
--> https://bugs.freedesktop.org/attachment.cgi?id=141117&action=edit
Test file with freetext annotation without appearance stream
Attached is an example file with a freetext annotation. This annotation has a
default appearance (DA) but no appearance stream (AP). Poppler disregards the
font of the annotation. While admittedly the file has been constructed by
hand-editing (annotating the file in Adobe Reader and then manually removing
the /AP part), it is nevertheless a standard-conforming file.
Fixing this issue is a necessary first step towards fixing
https://bugs.freedesktop.org/show_bug.cgi?id=81748 .
I attach a preliminary patch which kind-of fixes the issue. 'Kind-of' only,
because there are (at least) two issues with it:
- poppler issues
"Syntax Warning: Unknown font type: '???'"
from the call to 'GfxFont::makeFont' in Annot.cc:2933
- The text is moved a little bit towards the top of the page (notice how the
top part of "This is a test" is cut off).
The fact that poppler renders the text in the wrong color (red instead of
black) is a separate bug.
Test file and patch have been written by Tobias Deiminger, who deserves all the
praise.
--
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/20180815/a1dcc420/attachment.html>
More information about the Poppler-bugs
mailing list