Hi, I am editing/filling values in pdf XFA dynamic for using iTextsharp v4.1.2.0. As I fill values and print file, it makes xfaForm read only.
here is my code for filling values PdfReader reader= new PdfReader(basefile); PdfStamper pdfs = new PdfStamper(reader, new System.IO.FileStream(newfile, System.IO.FileMode.Create)); AcroFields form = pdfs.AcroFields; XfaForm xfa = form.Xfa; (xfa.DatasetsSom.Name2Node["field1"] as XmlNode).InnerText = dr["f1"].ToString(); (xfa.DatasetsSom.Name2Node["field2"] as XmlNode).InnerText = dr["f2"].ToString(); xfa.Changed = true; xfa.SetXfa(pdfs.Writer); Please suggest me the right way to maintain editability of pdf file after modifications. Thanks in Advance! -- View this message in context: http://itext-general.2136553.n4.nabble.com/PDF-becomes-Read-only-after-filling-values-in-XFA-form-tp4660602.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php