pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tilman Hausherr <THaush...@t-online.de>
Subject Re: pdf with vertical mediabox but landscape rotation
Date Sun, 07 Jan 2018 10:11:06 GMT
Hi,
"Adding" is always supported but as you know PDFBox doesn't offer much 
high level help with creating PDFs. Rendering is also correct, unless 
the NoRotate flag is set. For an example, see this issue:
https://github.com/mozilla/pdf.js/issues/7631

Tilman

Am 07.01.2018 um 03:11 schrieb chitgoks:
> hi tilman
>
> does this means adding annotations in landscape is not supported yet?
>
> thanks
>
> On Sat, Jan 6, 2018 at 7:35 PM, Tilman Hausherr <THausherr@t-online.de>
> wrote:
>
>> Am 06.01.2018 um 11:19 schrieb chitgoks:
>>
>>> regarding my previous email on landscape
>>>
>>> it looks like portrait or landscape have same bbox but for landscape there
>>> is a rotation value
>>>
>>> does pdfbox have some sort of convenience method to get bbox (like in
>>> itext
>>> page.getPageSizeWithRotation()) based on rotation? or how to do this
>>> manually in pdfbox?
>>>
>>>
>> You'll have to do it by hand, see in PDFRenderer how the page is prepared.
>>
>> If you support the "NoRotate" flag (which PDFBox does not support yet in
>> rendering annotations) then it is more tricky.
>>
>> Tilman
>>
>>
>>
>> ---------------------------------------------------------------------
>> 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