On 20.02.2025 10:27, Tilman Hausherr wrote:
Hi,

If you use the text stripper, then you can use TextPosition.getXScale(). Alternatively look into the source code of showText() and you will notice textRenderingMatrix getting calculated. Then call getScalingFactorX() on it.

To see how this works, try running the PrintTextLocations.java or the DrawPrintTextLocations.java example from the source code downloads, it outputs that scale on the console, so you can see whether it makes sense.

Tilman




Tilman

On 19.02.2025 19:32, Stefan wrote:
In the class PDFStreamEngine the method showText() is rendering a text.

I want to get there the real font size that is used - after all transformations.

Is this possible?

Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org

Reply via email to