[
https://issues.apache.org/jira/browse/PDFBOX-4616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16907390#comment-16907390
]
Tilman Hausherr commented on PDFBOX-4616:
-----------------------------------------
Thank you. From looking at your PDF, the problem is that the mediabox is not in
the pages, it is in the page tree structure and is inherited. Because you're
not using it, defaults settings are used. You should use the Splitter class
instead. Or use importPage instead of addPage. Or get/set them (cropbox and
mediabox and the resources) individually. And use the latest PDFBox version
(2.0.16). Note that .Net is not supported, so I didn't try your code.
> Orientation changing when splitting a particular PDF document with clipped
> output
> ---------------------------------------------------------------------------------
>
> Key: PDFBOX-4616
> URL: https://issues.apache.org/jira/browse/PDFBOX-4616
> Project: PDFBox
> Issue Type: Bug
> Components: .NET
> Environment: PDF extracted from Crystal report
> Reporter: Jitendra Mahendrapuri Goswami
> Priority: Major
> Attachments: PDF_Split_Issue.zip
>
>
> When I am splitting a PDF(with landscape orientation) that is extracted from
> crystal report, resulting files are converted in Portrait orientation with
> partial part getting removed. We are using getDocumentCatalog().getPages() to
> get particular page and saving it.
>
> The same file when opened in Internet Explorer and selected to print, detects
> orientation correctly. It is working when using
> Please share if there is any specific reason for such behavior and the way to
> handle it in coding.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]