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

PDFBox not honoring page orientation when printing PDFs with mixed orientation to PS

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 2.0.19
    • None
    • Rendering
    • Mac OS X, with Preview used as the PDF and PS viewer

    Description

      When using PDFBox to print a PDF containing both portrait and landscape pages to PS, the output has only Portrait pages. It's not that the landscape pages have been rotated, just that the resulting page has portrait page dimensions. Attached is an example PDF, the Java code used for printing to PS, and the resulting output.

       

      The PS has a BeingSetup/EndSetup section specifying the orientation only ahead of the first page. If I manually add one ahead of the second page with appropriate page dimensions ("792.0 612.0" instead of "612.0 792.0"), it looks good.

       

      Is this a bug in PDFBox or a bug in the Java print system? https://issues.apache.org/jira/browse/PDFBOX-3453? leads me to believe it might actually be the latter.

      Attachments

        1. Pageable-PDFBox PS export bug.pdf.ps
          27 kB
          Tilman Hausherr
        2. PDFBox PS export bug.pdf
          8 kB
          Ulf Dittmer
        3. PDFBox PS export bug.pdf.ps
          27 kB
          Ulf Dittmer
        4. PDFtoPS.java
          2 kB
          Ulf Dittmer

        Activity

          People

            Unassigned Unassigned
            udittmer Ulf Dittmer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: