pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maruan Sahyoun <sahy...@fileaffairs.de>
Subject Re: media box with rotation
Date Wed, 10 Jan 2018 12:42:25 GMT
Hi,
> Am 10.01.2018 um 12:41 schrieb chitgoks <chitgoks@gmail.com>:
> 
> Hi maruan
> 
> i tried it like this
> 
> PDRectangle rectToUse = pdPage.getMediaBox();
>                 
>                 if (pdPage.getRotation() != 0 && pdPage.getRotation() != 180)
>                     rectToUse = new PDRectangle(0, 0, pdPage.getMediaBox().getHeight(),
pdPage.getMediaBox().getWidth());
> 
> the annotations do not get rotated. they do not have the NO ROTATE flag.
> 
> does this mean i have to manually recalculate the coordinates?

Yes

BR
Maruan


> 
> ---------------------------------------------------------------------
> 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


Mime
View raw message