Package org.apache.pdfbox.pdmodel
Class ConformingPDDocument
java.lang.Object
org.apache.pdfbox.pdmodel.PDDocument
org.apache.pdfbox.pdmodel.ConformingPDDocument
- All Implemented Interfaces:
Pageable
,Closeable
,AutoCloseable
- Author:
- adam
-
Field Summary
Fields inherited from interface java.awt.print.Pageable
UNKNOWN_NUMBER_OF_PAGES
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetObjectFromPool
(long number, long generation) This will get an object from the pool.This will get an object from the pool.This will get list of object keys from the pool.static PDDocument
This will load a document from an input stream.void
putObjectInPool
(COSBase object, long number, long generation) void
setParser
(ConformingPDFParser parser) Methods inherited from class org.apache.pdfbox.pdmodel.PDDocument
addPage, addSignature, addSignature, addSignatureField, clearWillEncryptWhenSaving, close, decrypt, encrypt, getCurrentAccessPermission, getDocument, getDocumentCatalog, getDocumentId, getDocumentInformation, getEncryptionDictionary, getLastSignatureDictionary, getNumberOfPages, getOwnerPasswordForEncryption, getPageCount, getPageFormat, getPageMap, getPrintable, getSecurityHandler, getSignatureDictionaries, getSignatureDictionary, getSignatureFields, getUserPasswordForEncryption, importPage, isAllSecurityToBeRemoved, isEncrypted, isOwnerPassword, isUserPassword, load, load, load, load, load, load, load, load, load, load, load, loadNonSeq, loadNonSeq, loadNonSeq, loadNonSeq, openProtection, print, print, protect, removePage, removePage, save, save, save, saveIncremental, saveIncremental, setAllSecurityToBeRemoved, setDocumentId, setDocumentInformation, setEncryptionDictionary, setSecurityHandler, silentPrint, silentPrint, wasDecryptedWithOwnerPassword, willEncryptWhenSaving
-
Constructor Details
-
ConformingPDDocument
- Throws:
IOException
-
ConformingPDDocument
- Throws:
IOException
-
-
Method Details
-
load
This will load a document from an input stream.- Parameters:
input
- The File which contains the document.- Returns:
- The document that was loaded.
- Throws:
IOException
- If there is an error reading from the stream.
-
getObjectFromPool
This will get an object from the pool.- Parameters:
key
- The object key.- Returns:
- The object in the pool or a new one if it has not been parsed yet.
- Throws:
IOException
- If there is an error getting the proxy object.
-
getObjectKeysFromPool
This will get list of object keys from the pool.- Returns:
- The list of object keys in the pool.
- Throws:
IOException
- If there is an error getting keys.
-
getObjectFromPool
This will get an object from the pool.- Parameters:
number
- the object numbergeneration
- the generation of this object you wish to load- Returns:
- The object in the pool
- Throws:
IOException
- If there is an error getting the proxy object.
-
putObjectInPool
-
getParser
- Returns:
- the parser
-
setParser
- Parameters:
parser
- the parser to set
-