[
https://issues.apache.org/jira/browse/PDFBOX-3385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15333617#comment-15333617
]
Daniel Wilson commented on PDFBOX-3385:
---------------------------------------
Thanks, Tilman. I see that now ... using Notepad++, even.
So, is it fair to say that a PDF file that draws art outside its defined ArtBox
is simply a bad file whose art we cannot be expected to center?
> ArtBox is off center
> --------------------
>
> Key: PDFBOX-3385
> URL: https://issues.apache.org/jira/browse/PDFBOX-3385
> Project: PDFBox
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Daniel Wilson
> Attachments: 1508.ai, OffCenterArtBox.png
>
>
> Some PDF / Adobe Illustrator files have their art off center. In some of
> these cases, the page ArtBox is reported the right size but the wrong
> position.
> PDPage aiPage = aiDoc.getPage(0);
> PDRectangle ArtBox = aiPage.getArtBox();
> I need the correct coordinates for the ArtBox in order to center the art
> within the window of my application.
> I'll happily patch the code ... but if you have pointers to identify what's
> messing up the ArtBox coordinates, those are appreciated.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]