[
https://issues.apache.org/jira/browse/FOP-2111?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17428827#comment-17428827
]
J Frank commented on FOP-2111:
------------------------------
can you add fo and steps to recreate please?
> [PATCH] Fop-pdf-images extension should ignore crop box dimensions if bigger
> than media box
> -------------------------------------------------------------------------------------------
>
> Key: FOP-2111
> URL: https://issues.apache.org/jira/browse/FOP-2111
> Project: FOP
> Issue Type: Bug
> Components: image/unqualified
> Affects Versions: 2.5
> Environment: Operating System: All
> Platform: PC
> Reporter: Matthias Reischenbacher
> Attachments: 53724.patch
>
>
> The PDF spec says (section 10.10.1 Page Boundaries, Version 1.7): "The media
> box defines the boundaries of the physical medium on which the page is to be
> printed. It may include any extended area surrounding the finished page for
> bleed, printing marks, or other such purposes. It may also include areas
> close to the edges of the medium that cannot be marked because of physical
> limitations of the output device. Content falling outside this boundary can
> safely be discarded without affecting the meaning of the PDF file."
> I've seen PDF files (created with Adobe Illustrator) which have a crop box
> exceeding the size of the media box. The fop-pdf-images extensions doesn't
> handle this special case correctly because the crop box is always used,
> without checking if the dimensions are actually smaller than the media box.
> Therefore the "content falling outside this boundary" is not discarded as
> suggested by the PDF spec.
> As soon as patch 53468 is processed, I'll provide a patch for this issue too
> (there are changes in the same source file which makes it impossible to
> provide a clean Patch).
--
This message was sent by Atlassian Jira
(v8.3.4#803005)