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.
--
Best Wishes,
Jason