Thanx Bruno,
I used partialFormFlattening method of PDFStamper, and it worked
like a charm. Now I hae run into another problem, how to change the submit
action (URL) of a form.
Regards
Nitin
----- Original Message -----
From: "Bruno Lowagie" <[EMAIL PROTECTED]>
To: "Nitin Tomer" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Friday, January 06, 2006 6:24 PM
Subject: Re: [iText-questions] Making fields in a form read only
Nitin Tomer wrote:
Hi,
I am using PDf forms for mapping a process in our organization. The
first user in the process fills up the form and submits it and we
initiate a work-flow. Now the requirements is that the second user in
the work-flow must get a pre-populated form (from the data of the
first user) so that he can edit the data. But some fields filled by
the first user must be made un-editable (read only).
Look for the methods setFormFlattening and setPartialFormFlattening.
For instance:
form = stamper.getAcroFields();
form.setField("field1", value1);
form.setField('field2", value2);
stamper.setFormFlattening(true);
stamper.setPartialFormFlattening("field2");
field1 will be editable.
field2 will be read only.
br,
Bruno
Disclaimer :- This e-mail message including any attachment may contain
confidential, proprietary or legally privileged information. It should not be
used by who is not the original intended recipient. If you have erroneously
received this message, you are notified that you are strictly prohibited from
using, coping, altering or disclosing the content of this message. Please
delete it immediately and notify the sender. Newgen Software Technologies Ltd
and / or its subsidiary Companies accept no responsibility for loss or damage
arising from the use of the information transmitted by this email including
damage from virus and further acknowledges that any views expressed in this
message are those of the individual sender and no binding nature of the message
shall be implied or assumed unlessthe sender does so expressly with due
authority of Newgen Software TechnologiesLtd and / or its subsidiary Companies,
as applicable.
-------------------------------------------------------
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