Class FdfReader

java.lang.Object
com.aowagie.text.pdf.PdfReader
com.aowagie.text.pdf.FdfReader
All Implemented Interfaces:
PdfViewerPreferences

class FdfReader extends PdfReader
Reads an FDF form and makes the fields available
  • Field Details

    • fields

      private HashMap fields
    • fileSpec

      private String fileSpec
    • encoding

      private PdfName encoding
  • Constructor Details

    • FdfReader

      FdfReader()
  • Method Details

    • readPdf

      protected void readPdf() throws IOException
      Overrides:
      readPdf in class PdfReader
      Throws:
      IOException
    • kidNode

      private void kidNode(PdfDictionary merged, String name)
    • readFields

      private void readFields()
    • getFields

      public HashMap getFields()
      Gets all the fields. The map is keyed by the fully qualified field name and the value is a merged PdfDictionary with the field content.
      Returns:
      all the fields
    • getFieldValue

      String getFieldValue(String name)
      Gets the field value or null if the field does not exist or has no value defined.
      Parameters:
      name - the fully qualified field name
      Returns:
      the field value or null
    • getFileSpec

      public String getFileSpec()
      Gets the PDF file specification contained in the FDF.
      Returns:
      the PDF file specification contained in the FDF