XfdfReader
Contents
[
Hide
]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
Constructor | Description |
---|---|
XfdfReader() |
Methods
Method | Description |
---|---|
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:
Parameter | Type | Description |
---|---|---|
stream | java.io.InputStream | Source stream containing XFDF file. |
document | IDocument | Document 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:
Parameter | Type | Description |
---|---|---|
stream | java.io.InputStream | Stream containing XFDF data. |
document | IDocument | Document 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:
Parameter | Type | Description |
---|---|---|
reader | com.aspose.ms.System.Xml.XmlReader | XmlReader for the source file. |
Returns: java.util.Map - Hashtable with information parsed from XFDF file.