By Date: <-- -->
By Thread: <-- -->

NeedAppearances & signing woes



The NeedAppearances flag handling in Acrobat has always been buggy, and probably always will be.

You can remove that flag programatically, though it means you have to poke around in the AcroForm dictionary.

---

PRAcroForm form = myReader.getAcroForm(); // PRAcroForm inherits from PdfDicionary

if (form != null && form.contains( PdfName.NEEDAPPEARANCES )) {
  form.remove( PdfName.NEEDAPPEARANCES );
}

---

You can then go on to use that reader for your output (PdfStamper or whatever).

PS: The NeedAppearances flag is a document-level flag.  You can't adjust it on a field-by-field basis.  If you require it for some other fields... yuck.

--Mark Storer 
  Senior Software Engineer 
  Cardiff.com

#include <disclaimer> 
typedef std::Disclaimer<Cardiff> DisCard; 



> -----Original Message-----
> From: itext-questions-bounces (at) lists.sourceforge.net
> [mailto:itext-questions-bounces (at) lists.sourceforge.net]On Behalf Of
> Robert Esterer
> Sent: Monday, November 06, 2006 6:08 AM
> To: itext-questions (at) lists.sourceforge.net
> Subject: [iText-questions] NeedAppearances & signing woes
> 
> 
> Is there a straight forward way to change or delete the 
> "NeedAppearances"
> flag for a signature field in iText?
> I've got the old 
> signature-not-visible-in-Acrobat-because-of-NeedAppearances
> problem and manually changing/deleting that flag fixes it.
> 
> btw: It seems that the Acrobat always deletes the 
> "NeedAppearances" flag
> when a signature field is filled, but iText never does. Is 
> that behaviour
> intended?
> 
> Thanks in advance,
> -Robert
> 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions (at) lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions