You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@pdfbox.apache.org by Jacob MacWilliams <ja...@gmail.com> on 2022/09/13 15:31:10 UTC

PDRectangle to awt.Rectangle coordinate transformation

Hi,

What is the correct coordinate transformation to translate the 
coordinates of the org.apache.pdfbox.pdmodel.common.PDRectangle to 
coordinates that can draw the same rectangle with the java.awt.Rectangle 
class?

Jacob MacWilliams


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


Re: PDRectangle to awt.Rectangle coordinate transformation

Posted by Tilman Hausherr <TH...@t-online.de>.
1 unit in PDF = 1/72 inch at 100% sized displaying (which is 72 dpi).

Tilman

On 13.09.2022 17:31, Jacob MacWilliams wrote:
> Hi,
>
> What is the correct coordinate transformation to translate the 
> coordinates of the org.apache.pdfbox.pdmodel.common.PDRectangle to 
> coordinates that can draw the same rectangle with the 
> java.awt.Rectangle class?
>
> Jacob MacWilliams
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@pdfbox.apache.org
> For additional commands, e-mail: users-help@pdfbox.apache.org
>


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