1 unit = 1/72 inches. (unless something else is defined, which usually
isn't and we don't support it anyway)
Tilman
Am 27.04.2018 um 16:30 schrieb JZ Q:
Hi everyone,
I was trying to put a rubber stamp scaled to a field size, but the
resolution of image is not appropriate.
How do i convert the user space units to pixels, so i can add a good image
file? Thank you.
PDRectangle rect = selectedField.getWidgets().get(0).getRectangle();
System.out.println("Initial Box Size (" + rect.getWidth() + ", " +
rect.getHeight() + ")");
public PDRectangle
<https://pdfbox.apache.org/docs/2.0.8/javadocs/org/apache/pdfbox/pdmodel/common/PDRectangle.html>
getRectangle()
The annotation rectangle, defining the location of the annotation on the
page in default user space units.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]