pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JZ Q <ccna2c...@gmail.com>
Subject What is default user space units?
Date Fri, 27 Apr 2018 14:30:37 GMT
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

The annotation rectangle, defining the location of the annotation on the
page in default user space units.

Best Wishes,

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message