[jira] [Commented] (PDFBOX-4616) Orientation changing when splitting a particular PDF document with clipped output
[ https://issues.apache.org/jira/browse/PDFBOX-4616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16909032#comment-16909032 ] Jitendra Mahendrapuri Goswami commented on PDFBOX-4616: --- Thank you [~tilman], I will make suggested changes and revert with results. > 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 >Affects Versions: 2.0.12 > 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: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-4616) Orientation changing when splitting a particular PDF document with clipped output
[ https://issues.apache.org/jira/browse/PDFBOX-4616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-4616) Orientation changing when splitting a particular PDF document with clipped output
[ https://issues.apache.org/jira/browse/PDFBOX-4616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16907255#comment-16907255 ] Jitendra Mahendrapuri Goswami commented on PDFBOX-4616: --- [~tilman] : Please find attached [^PDF_Split_Issue.zip], containing # C# code that we are using for splitting PDF. # Source file on which split operation is being performed. # Resulting files after split operation. Version of PDFBox : 2.0.12. > 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: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org
[jira] [Commented] (PDFBOX-4616) Orientation changing when splitting a particular PDF document with clipped output
[ https://issues.apache.org/jira/browse/PDFBOX-4616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16897316#comment-16897316 ] Tilman Hausherr commented on PDFBOX-4616: - Please reproduce the effect with java, attach your PDF and the code and mention what version you are using. > 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 > > 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: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org