-
|
Hello here, I try to edit an existing PDF with hexapdf. This PDF use embedded font: I want to reuse this font without loading it again from TTF file on disk, it's not sure to have it. I don't find a way from the doc to reuse such font, is it only possible? Regard, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
It is generally not possible to re-use a font in this way. The reason for this is that most TrueType and OpenType fonts that are embedded in a PDF have be subset and stripped:
Nonetheless, if you retrieve a font object from a PDF and the PDF viewers and some libraries work around this by looking at the font object and retrieving the same or an equivalent font from the operating system. |
Beta Was this translation helpful? Give feedback.
-
|
Ty for this answer! |
Beta Was this translation helpful? Give feedback.
It is generally not possible to re-use a font in this way. The reason for this is that most TrueType and OpenType fonts that are embedded in a PDF have be subset and stripped: