Hi Leonard
 
I'm flattening the form, not the individual field (if this is possible).
(PDF should be unamendable since it forms part of a contract.).  Here's
my code:
 
PdfReader reader = new PdfReader(new
RandomAccessFileOrArray(documentPath), null);

MemoryStream ms = new MemoryStream();

PdfStamper stamper = new PdfStamper(reader, ms);

AcroFields fields = stamper.AcroFields;

 

foreach (Mapping mapping in mappingList)

{

    fields.SetField(mapping.Fieldname, mapping.Value);

}

                

stamper.FormFlattening = true;

stamper.Close();..........

 

Thanks

Julia

 


.
----------------------------------------------------------------------------------------------------------------------

HBOS plc, Registered in Scotland No. SC218813. Registered Office: The Mound, 
Edinburgh EH1 1YZ. HBOS plc is a holding company, subsidiaries of which are 
authorised and regulated by the Financial Services Authority.
==============================================================================
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to