Thirs is what the code:
import com.lowagie.tex t.pdf.PdfReader ;
import com.lowagie.tex t.Document;
import com.lowagie.tex t.pdf.PdfImport edPage;
import com.lowagie.tex t.pdf.PdfCopy;
import com.lowagie.tex t.pdf.PdfStampe r;
import com.lowagie.tex t.pdf.AcroField s;
import com.lowagie.tex t.DocumentExcep tion;
import com.lowagie.tex t.pdf.PdfWriter ;
import com.lowagie.tex t.Anchor;
...
User Profile
Collapse
-
There are pages in that particular document.Still i'm getting the error message....Leave a comment:
-
ExceptionConverter:* java.io.IOException*: The document has no pages
Hello
I am using iText framework.
Getting the following error. The error is occurring when documet.close() is invoked.
ExceptionConver ter:* java.io.IOExcep tion*: The document has no pages.
at com.nri.xenos.r epor*t.text.pdf .PdfPages.*writ ePageTree(PdfPa g*es.java:107)
at com.nri.xenos.r epor*t.text.pdf .PdfWriter*.clo se(PdfWriter.ja v*a:850)
at com.nri.xenos.r epor*t.text.pdf .PdfDocume*nt.c lose(PdfDocumen t*.java:1043)...
No activity results to display
Show More
Leave a comment: