public void Setup() { _reader = new PdfReader(_fileNameSorgente); _stamper = new PdfStamper(_reader, new FileOutputStream(_fileTemp)); _form = _stamper.getAcroFields(); _m = new PdfDescriber(_fileNameSorgente); }
public void SetAllFieldToEmpty() { if (_reader != null) { PdfDescriber m = new PdfDescriber(_fileNameSorgente); m.Setup(); System.Collections.Hashtable _arr = m.GetFieldsInfoToHashtable(); foreach (DictionaryEntry elem in _arr) { _form.setField(elem.Key.ToString(), ""); } m.Dispose(); } else { throw new FieldAccessException(); } }