com.itextpdf.text.exceptions.InvalidPdfException

The document has no page root (meaning: it's an invalid PDF).

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web19

  • via Unknown by Unknown author,
  • via Unknown by Unknown author,
  • Stack trace

    • com.itextpdf.text.exceptions.InvalidPdfException: The document has no page root (meaning: it's an invalid PDF). at com.itextpdf.text.pdf.PdfReader.readPages(PdfReader.java:1248) at com.itextpdf.text.pdf.PdfReader.readPdf(PdfReader.java:739) at com.itextpdf.text.pdf.PdfReader.<init>(PdfReader.java:181) at com.itextpdf.text.pdf.PdfReader.<init>(PdfReader.java:219) at com.itextpdf.text.pdf.PdfReader.<init>(PdfReader.java:207) at com.itextpdf.text.pdf.PdfReader.<init>(PdfReader.java:197) at com.mitech.med.watermark.Test2.main(Test2.java:11)

    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 visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    2 more bugmates