java.lang.RuntimeException

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

Solutions on the web17685

  • The page 1 was requested but the document has only 0 pages.
  • via Stack Overflow by csarathe
    , 9 months ago
    The page 1 was requested but the document has only 0 pages.
  • via GitHub by torakiki
    , 1 year ago
    The page 1 was requested but the document has only 0 pages.
  • Stack trace

    • java.lang.RuntimeException: The page 1 was requested but the document has only 0 pages. at com.itextpdf.text.pdf.PdfWriter.close(PdfWriter.java:1260)[itextpdf-5.5.3.jar:5.5.3] at com.itextpdf.text.pdf.PdfCopy.close(PdfCopy.java:1711)[itextpdf-5.5.3.jar:5.5.3] at com.itextpdf.text.pdf.PdfDocument.close(PdfDocument.java:886)[itextpdf-5.5.3.jar:5.5.3] at com.itextpdf.text.Document.close(Document.java:416)[itextpdf-5.5.3.jar:5.5.3] at com.test.pdf.pro.file.business.impl.FileServiceTestImpl.concatPDFs(FileServiceTestImpl.java:6042)[Test.jar:]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 9 months ago
    Unknown user
    Once, 1 year ago