public class COSDocument extends COSBase
| Constructor and Description |
|---|
COSDocument() |
COSDocument(FileTrailer trailer,
String headerVersion) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(COSVisitor visitor)
Visitor pattern for the COS model objects
|
COSDictionary |
getCatalog() |
COSArray |
getDocumentID() |
COSDictionary |
getEncryptionDictionary()
Get the encryption dictionary if the document is encrypted or null if the document is not encrypted.
|
String |
getHeaderVersion() |
FileTrailer |
getTrailer() |
boolean |
isEncrypted() |
void |
setDocumentID(COSArray id) |
void |
setEncryptionDictionary(COSDictionary dictionary)
Set the encryption dictionary, this should only be called when encrypting the document.
|
void |
setHeaderVersion(String headerVersion)
Sets the version of the PDF specification to write to the file header.
|
getCOSObject, hasId, id, idIfAbsentpublic COSDocument()
public COSDocument(FileTrailer trailer, String headerVersion)
public void setHeaderVersion(String headerVersion)
headerVersion - public String getHeaderVersion()
public boolean isEncrypted()
public COSDictionary getEncryptionDictionary()
public void setEncryptionDictionary(COSDictionary dictionary)
dictionary - The encryption dictionary.public COSArray getDocumentID()
public void setDocumentID(COSArray id)
public COSDictionary getCatalog()
IllegalStateException - If no catalog can be found.public FileTrailer getTrailer()
public void accept(COSVisitor visitor) throws IOException
COSBaseaccept in class COSBaseIOExceptionCopyright © 2020 sejda. All rights reserved.