public final class XfdfReader extends Object
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");
Constructor and Description |
---|
XfdfReader() |
Modifier and Type | Method and Description |
---|---|
static Map |
getElements(com.aspose.ms.System.Xml.XmlReader reader)
Parses XFDF file and returns information as hashtable.
|
static void |
readAnnotations(InputStream stream,
IDocument document)
Import annotations from XFDF file and put them into document.
|
static void |
readFields(InputStream stream,
IDocument document)
Import field values from XFDF file.
|
public static void readAnnotations(InputStream stream, IDocument document)
Import annotations from XFDF file and put them into document.
stream
- Source stream containing XFDF file.document
- Document where annotations will be added.public static void readFields(InputStream stream, IDocument document)
Import field values from XFDF file.
stream
- Stream containing XFDF data.document
- Document where fields data will be imported.public static Map getElements(com.aspose.ms.System.Xml.XmlReader reader)
Parses XFDF file and returns information as hashtable.
reader
- XmlReader for the source file.