Mark

Thanks for the input. Some helpful pointers

 

The problem with an infinite library is not that the information is not
there, it is knowing what to search for to yield profitable results.

Some evening reading is in order.

 

john renfrew 

Right Way Up 
Office  +44 1675 475341 
Fax      +44 1675 475342 
Mobile +44 7767 443992

 

From: Mark Storer [mailto:[email protected]] 
Sent: 03 June 2010 17:02
To: [email protected]; Post all your questions about iText here
Subject: RE: [iText-questions] AcroForm learning

 

A: As Bill mentioned, partial form flattening.
http://api.itextpdf.com/com/itextpdf/text/pdf/PdfStamper.html#partialFormFla
ttening(java.lang.String)

 

String names[] = {.}

for(String name : names) {

  myStamper.partialFormFlattening(name);

}

 

Only those fields passed to partialFormFlattening will be flattened.

 

Alternatively, you can set the fields to read-only rather than flattening
them:

 

for(String name : names) {

  myAcroFields.setFieldProperty(name, "setfflags",
PdfFormField.FF_READ_ONLY, null);

}

 

B: There have been several questions regarding the preservation of Extended
Rights on the list.  I suggest scanning one of the archives scattered around
the web.  Google sees all, knows all.

 

--Mark Storer

  Senior Software Engineer

  Cardiff.com

 

import legalese.Disclaimer;

Disclaimer<Cardiff> DisCard = null;

 

  _____  

From: John Renfrew [mailto:[email protected]] 
Sent: Thursday, June 03, 2010 5:17 AM
To: [email protected]
Subject: [iText-questions] AcroForm learning

 

I have successfully inserted database fields into a form with Acrofields
using the form.setField() method

 

I have  a separate snippet which uses the contentByte method to add some
text with setMatrix(), and a barcode as a cell in  a table and then uses
write selectedRows method to add this to the cb

 

Of course if I do the second to a form where I have done the first it then
tells me extended features are no longer available.

 

Hmm. Could you point to the bits of the second book I need to read next??

 

 

Or 

Is it possible to selectively lock (flatten) fields on a form - so say the
surname is fixed, but someone could edit/enter the first name??

 

john renfrew 

Right Way Up 
Office  +44 1675 475341 
Fax      +44 1675 475342 
Mobile +44 7767 443992

 

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.829 / Virus Database: 271.1.1/2913 - Release Date: 06/02/10
23:25:00

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to