[Poppler-bugs] [Bug 81748] FreeText annotation ignores font

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat May 26 20:01:58 UTC 2018


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

--- Comment #12 from Tobias Deiminger <haxtibal at posteo.de> ---
(In reply to Phil from comment #0)
> generating the PDF with Ruby Prawn gem, and
> adding the annotations with Ruby Origami PDF gem.
Should have read that more carefully, sorry. So it is origami [0], not
prawnpdf, who needs to setup default appearance and fonts in default resources
correctly. Or even the origami user, depending on how low-level the API is.

@Phil: From a very brief look at [1] it seems like if Origami users want to set
a font for FreeText, they are intended to edit DA as raw string. Is it? If so,
it would probably also be your own responsibility to invent a font descriptor,
create a related font resource and finally add the resource to the font sub
dictionary of default resource dictionary in InteractiveForm [2].

[0] https://github.com/gdelugre/origami
[1]
https://github.com/gdelugre/origami/blob/98ea557af7aa9e926aac564bf89e6e0ead4a1a5e/lib/origami/annotations.rb#L309
[2]
https://github.com/gdelugre/origami/blob/16c6fffd433efd2ef9d7d56795912c8dc9a38cf3/lib/origami/acroform.rb#L114

-- 
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/20180526/5e66649e/attachment.html>


More information about the Poppler-bugs mailing list