Get text font and font size of freetext annotations #2435
Unanswered
dantard
asked this question in
Looking for help
Replies: 1 comment 2 replies
-
Sorry, there is no high-level support for this currently. You need to work your way to this info using low-level API: doc.xref_get_key(a.xref, "AP/N/Resources/Font")
('dict', '<</Helv 7 0 R>>')
# may have multiple entries. Here we only have one:
print(doc.xref_object(7))
<<
/Type /Font
/Subtype /Type1
/BaseFont /Helvetica
/Encoding /WinAnsiEncoding
>> |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I'm looking how to get font and font size of freetext annotations when it is obtained through
page.annots()
.Even though it is easy to set the font and the font size when it is added with
page.add_freetext_annot()
I haven't found the way of getting this information back.Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions