title: Get name's field from interactive form pdf
body: <p>Good Morning,</p>
  
  <p>I don't know, how can i read the field name form below pdf.
  I used all methods for AcroFields, but all methods returns 0 or null
  <a href="http://www.finanse.mf.gov.pl/documents/766655/1481810/PIT-8C(7)_v1-0E.pdf" rel="nofollow">http://www.finanse.mf.gov.pl/documents/766655/1481810/PIT-8C(7)_v1-0E.pdf</a></p>
  
  <p>my code: </p>
  
  <pre><code>try {
          PdfReader.unethicalreading = true;
          PdfReader reader = new PdfReader(new FileInputStream("/root/TestPit8/web/notmod.pdf"));
  
          PdfStamper stamper = new PdfStamper(reader, new FileOutputStream("/root/TestPit8/web/testpdf.pdf"));
          AcroFields form = stamper.getAcroFields();
  
  
          form.setField("text_1", "666");
          form.setField("text_2", "666");
          form.setField("text_3", "666");
          form.setFieldProperty("text_3", "clrfflags", TextField.PASSWORD, null);
          form.setFieldProperty("text_3", "setflags", PdfAnnotation.FLAGS_PRINT, null);
          form.setField("text_3", "12345678", "xxxxxxxx");
          form.setFieldProperty("text_4", "textsize", new Float(12), null);
          form.regenerateField("text_4");
          stamper.close();
          reader.close();
          } catch( Exception ex) {
              ex.printStackTrace();
          }
  </code></pre>
  
  <p>Thx forhelp</p>