Class XfdfObjectFactory

java.lang.Object
com.itextpdf.forms.xfdf.XfdfObjectFactory

public class XfdfObjectFactory extends Object
A factory for creating XfdfObject objects.
  • Constructor Details

    • XfdfObjectFactory

      public XfdfObjectFactory()
  • Method Details

    • createXfdfObject

      public XfdfObject createXfdfObject (PdfDocument document, String filename)
      Extracts data from pdf document acroform and annotations into XfdfObject.
      Parameters:
      document - Pdf document for data extraction
      filename - The name od pdf document for data extraction
      Returns:
      XfdfObject containing data from pdf forms and annotations.
    • createXfdfObject

      public XfdfObject createXfdfObject (InputStream xfdfInputStream) throws ParserConfigurationException, SAXException
      Extracts data from input stream into XfdfObject. Typically input stream is based on .xfdf file.
      Parameters:
      xfdfInputStream - the input stream containing xml-styled xfdf data
      Returns:
      XfdfObject containing original xfdf data.
      Throws:
      ParserConfigurationException - if a XfdfObject cannot be created which satisfies the configuration requested.
      SAXException - if any parse errors occurs.