Uploaded image for project: 'PDFBox'
  1. PDFBox
  2. PDFBOX-3385

ArtBox is off center

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.0.0
    • None
    • None
    • None

    Description

      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.

      Attachments

        1. OffCenterArtBox.png
          24 kB
          Daniel Wilson
        2. 1508.ai
          480 kB
          Daniel Wilson

        Activity

          People

            Unassigned Unassigned
            danielwilson Daniel Wilson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: