Home » pdfbox-1.1.0-src » org.apache.pdfbox.pdmodel.fdf » [javadoc | source]
org.apache.pdfbox.pdmodel.fdf
public class: FDFDocument [javadoc | source]
java.lang.Object
   org.apache.pdfbox.pdmodel.fdf.FDFDocument
This is the in-memory representation of the FDF document. You need to call close() on this object when you are done using it!!
Constructor:
 public FDFDocument() throws IOException 
    Constructor, creates a new FDF document.
    Throws:
    IOException - If there is an error creating this document.
 public FDFDocument(COSDocument doc) 
    Constructor that uses an existing document. The COSDocument that is passed in must be valid.
    Parameters:
    doc - The COSDocument that this document wraps.
 public FDFDocument(Document doc) throws IOException 
    This will create an FDF document from an XFDF XML document.
    Parameters:
    doc - The XML document that contains the XFDF data.
    Throws:
    IOException - If there is an error reading from the dom.
Method from org.apache.pdfbox.pdmodel.fdf.FDFDocument Summary:
close,   getCatalog,   getDocument,   load,   load,   load,   loadXFDF,   loadXFDF,   loadXFDF,   save,   save,   save,   saveXFDF,   saveXFDF,   saveXFDF,   setCatalog,   writeXML
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.pdfbox.pdmodel.fdf.FDFDocument Detail:
 public  void close() throws IOException 
    This will close the underlying COSDocument object.
 public FDFCatalog getCatalog() 
    This will get the FDF Catalog. This is guaranteed to not return null.
 public COSDocument getDocument() 
    This will get the low level document.
 public static FDFDocument load(String filename) throws IOException 
    This will load a document from a file.
 public static FDFDocument load(File file) throws IOException 
    This will load a document from a file.
 public static FDFDocument load(InputStream input) throws IOException 
    This will load a document from an input stream.
 public static FDFDocument loadXFDF(String filename) throws IOException 
    This will load a document from a file.
 public static FDFDocument loadXFDF(File file) throws IOException 
    This will load a document from a file.
 public static FDFDocument loadXFDF(InputStream input) throws IOException 
    This will load a document from an input stream.
 public  void save(File fileName) throws IOException, COSVisitorException 
    This will save this document to the filesystem.
 public  void save(String fileName) throws IOException, COSVisitorException 
    This will save this document to the filesystem.
 public  void save(OutputStream output) throws IOException, COSVisitorException 
    This will save the document to an output stream.
 public  void saveXFDF(File fileName) throws IOException, COSVisitorException 
    This will save this document to the filesystem.
 public  void saveXFDF(String fileName) throws IOException, COSVisitorException 
    This will save this document to the filesystem.
 public  void saveXFDF(Writer output) throws IOException, COSVisitorException 
    This will save the document to an output stream and close the stream.
 public  void setCatalog(FDFCatalog cat) 
    This will set the FDF catalog for this FDF document.
 public  void writeXML(Writer output) throws IOException 
    This will write this element as an XML document.