> I need to
> show only fields which has values and do not list
> fields which are empty as the result of
> ListFields.java. Is there a way I can do that? 


You can provide a list of field names through PdfStamper.partialFormFlattening( 
String ).

Each name you provide will be flattened.  The rest will not.  If you never call 
this funciton, everything is flattened (as you may have noticed;).

But flattening only takes place when you close the PdfStamper.  You'd have to 
open it back up again to get the results you're after.  Not terribly efficient.

--Mark Storer
  Senior Software Engineer
  Cardiff Software

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



> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf 
> Of Krishna
> G
> Sent: Monday, April 03, 2006 10:56 AM
> To: [email protected]
> Subject: [iText-questions] Do not display fields which are empty in
> ListFields.java
> 
> 
> Hello,
> 
> I have an application that fills in the fields of a
> pdf. I am using stamp.setFormFlattening(true) so that
> my fields will not show up with ListFields.java. I
> need to know whether there is way to flatten
> individual fields after filling them. I.e I tried
> form.removeField(fieldName), but it removes the field
> value from the resulting pdf which I do not want. I
> want the value to be the pdf but do not want to list
> it with ListFields.java.
> 
> 
> Thanks
> Krishna
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking 
> scripting language
> that extends applications into web and mobile media. Attend 
> the live webcast
> and join the prime developer group breaking into this new 
> coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&;
dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to