On 11.02.2025 11:58, pdf...@habmalnefrage.de.INVALID wrote:
I'm not changing the PDF, I'm just processing a given PDF that originally does
to not have the information in the font.
And I perfectly understand that in case of subsetted fonts there are not all
glyphs available in the font.
So my questions seems to be:
when there is no width information available for a character in showText(), how
is the x-advance to position the next character set?
You should elaborate what you mean with "processing".... There is also
PDFont.getWidth() and PDFont.getDisplacement() but the parameter is the
code in the PDF, not the unicode.
Or maybe have a look at the DrawPrintTextLocations.java example, this
one uses the width while doing text extraction.
Tilman
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org