java.lang.RuntimeException: The page 1 was requested but the document has only 0 pages.

Stack Overflow | csarathe | 6 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Itext pdf - Broken Pipe Error

    Stack Overflow | 6 months ago | csarathe
    java.lang.RuntimeException: The page 1 was requested but the document has only 0 pages.
  2. 0

    the page 1 was request but the document has only 0 pages

    Stack Overflow | 4 years ago | My God
    java.lang.RuntimeException: The page 1 was requested but the document has only 0 pages.
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Itext : create only the table of content page

    Stack Overflow | 4 months ago | Arun
    java.lang.RuntimeException: The page 10 was requested but the document has only 1 pages.

    2 unregistered visitors

    Root Cause Analysis

    1. java.lang.RuntimeException

      The page 1 was requested but the document has only 0 pages.

      at com.itextpdf.text.pdf.PdfWriter.close()
    2. iText, a Free Java-PDF library
      Document.close
      1. com.itextpdf.text.pdf.PdfWriter.close(PdfWriter.java:1260)[itextpdf-5.5.3.jar:5.5.3]
      2. com.itextpdf.text.pdf.PdfCopy.close(PdfCopy.java:1711)[itextpdf-5.5.3.jar:5.5.3]
      3. com.itextpdf.text.pdf.PdfDocument.close(PdfDocument.java:886)[itextpdf-5.5.3.jar:5.5.3]
      4. com.itextpdf.text.Document.close(Document.java:416)[itextpdf-5.5.3.jar:5.5.3]
      4 frames
    3. com.test.pdf
      FileServiceTestImpl.concatPDFs
      1. com.test.pdf.pro.file.business.impl.FileServiceTestImpl.concatPDFs(FileServiceTestImpl.java:6042)[Test.jar:]
      1 frame