I'll comment when I see the PDF.

----- Original Message ----- From: "Tom Hubbard" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, January 10, 2006 9:42 PM
Subject: [iText-questions] Flattening ActivePDF generated form fields.


I'm trying to use iText to flatten PDF's with form fields in them and am
running into trouble when trying to flatten PDF's populated with ActivePDF's
toolkit.

The original (yet to be populated--but still containing the form fields) PDF
flattens just fine.  It's only after populating it from the toolkit.

Specifically the code is crashing with a NullPointerException on line 725 of PdfStamperImp.java because objReal in the objReal.isDictionary()call is null. Following the code, the reason ObjReal is null is that the call to appDic.get
(PdfName.N) returns null.  So, when objReal is created from PdfReader it
returns null.

After stepping through the code a number of times, I cannot figure out what is
going on.  It appears this section of code is trying to some special
positioning, but I'm no expert.

I can get around this by checking to see if obj is null after the call to
appDic.get(PdfName.N) and skipping the code. It runs and flattens the form just fine, however since I don't know what is really going on I assume it's not
the smartest thing to do.

Any comments?

Tom Hubbard
[EMAIL PROTECTED]



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to