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

Incorrect OverlayPDF positioning

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 2.0.1
    • None
    • Utilities
    • Ubuntu 16.04, Java 1.8.0, 64-bit

    Description

      Some PDFs have atypical media/crop boxes, and this seems to cause the OverlayPDF command in pdfbox-app to produce unexpected results.

      To reproduce:

      wget https://www.colorado.gov/pacific/sites/default/files/W-9_0.pdf
      wget http://stepheneisenhauer.com/files/CenterLines.pdf
      java -jar pdfbox-app-2.0.1.jar OverlayPDF W-9_0.pdf out.pdf
      

      In this example, W-9_0.pdf has the unusual traits (when opened in Inkscape, objects outside the media box can be seen), and CenterLines.pdf is just a normal PDF with lines centered on the page. Both pages have the same media size, yet out.pdf shows the lines shifted (though they are still their original size).

      Attachments

        1. W-9_0.pdf
          53 kB
          Tilman Hausherr
        2. CenterLines.pdf
          0.9 kB
          Tilman Hausherr

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            BHSPitMonkey Stephen Eisenhauer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment