Use PDFont.getStringWidth() to get the size of a text. That number must usually be divided by 1000.

Tilman

On 08.02.2023 15:11, nbs skill wrote:
Hello,

I need to add a visible signature to a PDF using pdfbox.
I used this:
https://github.com/apache/pdfbox/blob/trunk/examples/src/main/java/org/apache/pdfbox/examples/signature/CreateVisibleSignature2.java
But, I need to fill out a signature rectangle with dynamic text without
exceeding the rectangle's edges and the text should not be cut.
Could you help me with this, please?

Thanks in advance



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

Reply via email to