Interface Document

All Known Implementing Classes:
AbstractDocument, PDFDocument, PSDocument

public interface Document
Interface defining a document that can be handled by the library.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    append(Document document)
    Append pages of another document to the current document.
    Separate each pages to a new document.
    extract(int begin, int end)
    Return a new document containing pages of a given range.
    byte[]
    Return document content as a byte array
    int
    Return document page count
    int
    Return document size
    Return the type of the document.
    void
    load(File file)
    Load document from a File.
    void
    load(InputStream inputStream)
    Load document from an InputStream.
    void
    write(File file)
    Write document to a File.
    void
    write(OutputStream outputStream)
    Write document to an OutputStream