[
https://issues.apache.org/jira/browse/PDFBOX-3073?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
John Hewson closed PDFBOX-3073.
-------------------------------
Resolution: Invalid
This is the intended behaviour. Output is supposed to be cropped to the
CropBox, not the MediaBox. If you wish to render a page within its media box,
you can retrieve the media box from the PDPage and create a new BufferedImage
of the appropriate size, then render the page image onto it, in the location
specified by the crop box.
The crop box is usually what you want though, unless you're doing pre-press.
> Change to use media box for page size instead of cropbox.
> ---------------------------------------------------------
>
> Key: PDFBOX-3073
> URL: https://issues.apache.org/jira/browse/PDFBOX-3073
> Project: PDFBox
> Issue Type: Bug
> Components: Text extraction
> Affects Versions: 2.0.0
> Reporter: Daniel Persson
> Priority: Minor
> Labels: github-import
> Fix For: 2.0.0
>
> Attachments: mediabox_for_content.patch
>
>
> For PDF documents where media box is larger or smaller than crop box the
> content get squeezed or stretched.
> For PDF content the media box should be used as the page size.
> More information about this at
> http://www.prepressure.com/pdf/basics/page-boxes
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]