You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2014/10/14 18:42:34 UTC

[jira] [Resolved] (PDFBOX-1727) Content outside the MediaBox should not be rendered

     [ https://issues.apache.org/jira/browse/PDFBOX-1727?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tilman Hausherr resolved PDFBOX-1727.
-------------------------------------
    Resolution: Fixed

I've added a method calcAdjustedCropBox() to PDPage to pass a corrected cropbox, which is to be used instead of findCropBox().

Thanks for pointing us to that problem!

> Content outside the MediaBox should not be rendered
> ---------------------------------------------------
>
>                 Key: PDFBOX-1727
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1727
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Rendering
>    Affects Versions: 1.8.2, 2.0.0
>            Reporter: Jake Robb
>            Assignee: Tilman Hausherr
>             Fix For: 2.0.0
>
>         Attachments: W9 - INDV.pdf
>
>
> From the PDF spec ( http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/PDF32000_2008.pdf page 628):
> "The crop, bleed, trim, and art boxes shall not ordinarily extend beyond the boundaries of the media box. If they do, they are effectively reduced to their intersection with the media box."
> The attached file has the following characteristics:
> MediaBox: [18.0,20.592,630.0,812.88]
> CropBox: [0.0,0.0,648.0,1043.0]
> TrimBox: [0.0,0.0,648.0,1043.0]
> BleedBox: [0.0,0.0,648.0,1043.0]
> In Adobe Reader, the "Do Not Print" section above the MediaBox does not display, but when using pdfbox it does.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)