示例#1
0
 public void Setup()
 {
     _reader  = new PdfReader(_fileNameSorgente);
     _stamper = new PdfStamper(_reader, new FileOutputStream(_fileTemp));
     _form    = _stamper.getAcroFields();
     _m       = new PdfDescriber(_fileNameSorgente);
 }
示例#2
0
 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();
     }
 }