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

Multi Page print doesn't work with "book.append(new PDFPrintable(document), pageFormat);"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 2.0.0
    • Fix Version/s: None
    • Component/s: None

      Description

      In the method printWithPaper of Printing.java example,
      if I use java.awt.print.Book as in the example:
      Book book = new Book();
      book.append(new PDFPrintable(document), pageFormat);
      job.setPageable(book);

      when I execute job.print(); it print only the first page of the document.

      I solved this issue by replacing the three rows mentioned above with:
      job.setPrintable(new PDFPrintable(document), pageFormat);

      by that all pages are printed.

      I hope this is useful for someone.

      Matteo

        Attachments

          Activity

            People

            • Assignee:
              lehmi Andreas Lehmkühler
              Reporter:
              matteo.carminati Matteo Carminati
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: