Package com.itextpdf.forms.xfdf
Class XfdfObjectFactory
java.lang.Object
com.itextpdf.forms.xfdf.XfdfObjectFactory
A factory for creating
XfdfObject
objects.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateXfdfObject
(PdfDocument document, String filename) Extracts data from pdf document acroform and annotations into XfdfObject.createXfdfObject
(InputStream xfdfInputStream) Extracts data from input stream into XfdfObject.
-
Constructor Details
-
XfdfObjectFactory
public XfdfObjectFactory()
-
-
Method Details
-
createXfdfObject
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.
-