XfdfReader

Inheritance: java.lang.Object

public final class XfdfReader

Class which peroformes reading of XFDF format.


Document doc = new Document("example.pdf"); InputStream xfdfStream = new FileInputStream("filename"); XfdfReader.readAnnotations(xfdfStream, doc); xfdfStream.close(); doc.save("example_out.pdf");

Constructors

ConstructorDescription
XfdfReader()

Methods

MethodDescription
readAnnotations(InputStream stream, IDocument document)Import annotations from XFDF file and put them into document.
readFields(InputStream stream, IDocument document)Import field values from XFDF file.
getElements(System.Xml.XmlReader reader)Parses XFDF file and returns information as hashtable.

XfdfReader()

public XfdfReader()

readAnnotations(InputStream stream, IDocument document)

public static void readAnnotations(InputStream stream, IDocument document)

Import annotations from XFDF file and put them into document.

Parameters:

ParameterTypeDescription
streamjava.io.InputStreamSource stream containing XFDF file.
documentIDocumentDocument where annotations will be added.

readFields(InputStream stream, IDocument document)

public static void readFields(InputStream stream, IDocument document)

Import field values from XFDF file.

Parameters:

ParameterTypeDescription
streamjava.io.InputStreamStream containing XFDF data.
documentIDocumentDocument where fields data will be imported.

getElements(System.Xml.XmlReader reader)

public static Map getElements(System.Xml.XmlReader reader)

Parses XFDF file and returns information as hashtable.

Parameters:

ParameterTypeDescription
readercom.aspose.ms.System.Xml.XmlReaderXmlReader for the source file.

Returns: java.util.Map - Hashtable with information parsed from XFDF file.