org.apache.pdfbox.pdmodel
public class ConformingPDDocument extends PDDocument
Constructor and Description |
---|
ConformingPDDocument() |
ConformingPDDocument(COSDocument doc) |
Modifier and Type | Method and Description |
---|---|
COSBase |
getObjectFromPool(COSObjectKey key)
This will get an object from the pool.
|
COSBase |
getObjectFromPool(long number,
long generation)
This will get an object from the pool.
|
java.util.List<COSObjectKey> |
getObjectKeysFromPool()
This will get an object from the pool.
|
ConformingPDFParser |
getParser() |
static PDDocument |
load(java.io.File input)
This will load a document from an input stream.
|
void |
putObjectInPool(COSBase object,
long number,
long generation) |
void |
setParser(ConformingPDFParser parser) |
addPage, addSignature, addSignature, clearWillEncryptWhenSaving, close, decrypt, encrypt, getCurrentAccessPermission, getDocument, getDocumentCatalog, getDocumentInformation, getEncryptionDictionary, getNumberOfPages, getOwnerPasswordForEncryption, getPageCount, getPageFormat, getPageMap, getPrintable, getSecurityHandler, getSignatureDictionary, getUserPasswordForEncryption, importPage, isAllSecurityToBeRemoved, isEncrypted, isOwnerPassword, isUserPassword, load, load, load, load, load, load, load, load, load, load, load, loadNonSeq, loadNonSeq, openProtection, print, print, protect, removePage, removePage, save, save, saveIncremental, saveIncremental, setAllSecurityToBeRemoved, setDocumentInformation, setEncryptionDictionary, setSecurityHandler, silentPrint, silentPrint, wasDecryptedWithOwnerPassword, willEncryptWhenSaving
public ConformingPDDocument() throws java.io.IOException
java.io.IOException
public ConformingPDDocument(COSDocument doc) throws java.io.IOException
java.io.IOException
public static PDDocument load(java.io.File input) throws java.io.IOException
input
- The File which contains the document.java.io.IOException
- If there is an error reading from the stream.public COSBase getObjectFromPool(COSObjectKey key) throws java.io.IOException
key
- The object key.java.io.IOException
- If there is an error getting the proxy object.public java.util.List<COSObjectKey> getObjectKeysFromPool() throws java.io.IOException
key
- The object key.java.io.IOException
- If there is an error getting the proxy object.public COSBase getObjectFromPool(long number, long generation) throws java.io.IOException
number
- the object numbergeneration
- the generation of this object you wish to loadjava.io.IOException
- If there is an error getting the proxy object.public void putObjectInPool(COSBase object, long number, long generation)
public ConformingPDFParser getParser()
public void setParser(ConformingPDFParser parser)
parser
- the parser to set