com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class XfdfReader



  • 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 Detail

      • XfdfReader

        public XfdfReader()
    • Method Detail

      • readAnnotations

        public static void readAnnotations(InputStream stream,
                                           IDocument document)

        Import annotations from XFDF file and put them into document.

        Parameters:
        stream - Source stream containing XFDF file.
        document - Document where annotations will be added.
      • readFields

        public static void readFields(InputStream stream,
                                      IDocument document)

        Import field values from XFDF file.

        Parameters:
        stream - Stream containing XFDF data.
        document - Document where fields data will be imported.
      • getElements

        public static Map getElements(com.aspose.ms.System.Xml.XmlReader reader)

        Parses XFDF file and returns information as hashtable.

        Parameters:
        reader - XmlReader for the source file.
        Returns:
        Hashtable with information parsed from XFDF file.