Here is the code that produces the error:

         if (managedNet.equals("true"))
         {
            reader = new PdfReader("/usr/local/jakarta-tomcat-4.1.24/" +
               "webapps/kcmria/forms/managedNet.pdf");
            page = writer.getImportedPage(reader, 1);
            cb.addTemplate(page, 0, 0);
            document.newPage();
            page = writer.getImportedPage(reader, 2);
            cb.addTemplate(page, 0, 0);
            document.newPage();
         }

Thanks,
Kenny

----- Original Message -----
From: "Kenny G. Dubuisson, Jr." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 24, 2003 8:52 AM
Subject: [iText-questions] PDF file opening error


> I have a web page that allows users to select different sections of a
> document and then generate a full PDF document from the selections made.
> Each section is it's own PDF.  All works fine except for one section
> document.  When the user adds it, they get the following error (truncated
> for brevity):
>
> java.lang.NullPointerException
>  at com.lowagie.text.pdf.PRAcroForm.iterateFields(Unknown Source)
>  at com.lowagie.text.pdf.PRAcroForm.readAcroForm(Unknown Source)
>  at com.lowagie.text.pdf.PdfReader.readPdf(Unknown Source)
>  at com.lowagie.text.pdf.PdfReader.(Unknown Source)
>  at PerformRecord.doGet(PerformRecord.java:62)
>
> I'm including the PDF file that is generating this error.  Any ideas would
> be welcome.  Thanks,
> Kenny
>



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to