pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chitgoks <chitg...@gmail.com>
Subject Re: media box with rotation
Date Thu, 11 Jan 2018 07:01:38 GMT
Could that vertical area where the annotations are not rotated as well be
some kind of bounding box?

maybe it is possible to rotate that if it is indeed found within some kind
of container.

On Wed, Jan 10, 2018 at 8:42 PM, Maruan Sahyoun <sahyoun@fileaffairs.de>
wrote:

> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message