[
https://issues.apache.org/jira/browse/PDFBOX-3385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15333504#comment-15333504
]
Tilman Hausherr commented on PDFBOX-3385:
-----------------------------------------
I get: \[223.846,290.876,433.685,442.781]. That is really the artbox that is in
the PDF:
{code}
5 0 obj<</Parent 2 0 R/Contents 21 0 R/BleedBox[0.0 0.0 612.0
792.0]/PieceInfo<</Illustrator 6 0 R>>/ArtBox[223.846 290.876 433.685
442.781]/MediaBox[0.0 0.0 612.0 792.0]/Thumb 25 0 R/TrimBox[0.0 0.0 612.0
792.0]/Resources<</ColorSpace<</CS0 18 0 R/CS1 19 0 R/CS2 20 0
R>>/Properties<</MC0<</Color[32768.0 20224.0 20224.0]/Visible true/Editable
true/Dimmed false/Preview true/Printed true/Title(Layer
2)>>/MC1<</Color[20224.0 32768.0 32768.0]/Visible true/Editable true/Dimmed
false/Preview true/Printed true/Title(Layer 1)>>>>/ExtGState<</GS0 17 0
R>>>>/Type/Page/LastModified(D:20070321140548-06'00')>>
endobj
{code}
> 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]