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

Overlays with /Rotate value appear rotated in result file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.16
    • 2.0.17, 3.0.0 PDFBox
    • Utilities
    • None

    Description

      As reported by Thomas Möller on the users mailing list:
      I try to overlay one pdf with another with pdfbox-app-2.0.16.

      In the output pdf the overlay is rotated by 90 degrees although both input pdfs are displayed in correct orientation in Acrobat Reader.

      When using PDFDebugger on the overlay pdf it shows rotate: 90

      So it seems that it was rotated before and the rotation is ignored by OverlayPDF.

      The example files:
      https://moellersoft.de/downloads/overlay.pdf
      https://moellersoft.de/downloads/background.pdf

      The result:
      https://moellersoft.de/downloads/pdfbox_wrong_result.pdf

      How it should look:
      https://moellersoft.de/downloads/result_made_w_acrobat.pdf

      Attachments

        1. overlay.pdf
          14 kB
          Tilman Hausherr
        2. background.pdf
          39 kB
          Tilman Hausherr
        3. rot90.pdf
          0.9 kB
          Tilman Hausherr
        4. rot0.pdf
          0.9 kB
          Tilman Hausherr
        5. rot180.pdf
          0.9 kB
          Tilman Hausherr
        6. rot270.pdf
          0.9 kB
          Tilman Hausherr

        Issue Links

          Activity

            People

              tilman Tilman Hausherr
              tilman Tilman Hausherr
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: