public class GFCosDocument extends GFCosObject implements CosDocument
| Modifier and Type | Field and Description |
|---|---|
static String |
COS_DOCUMENT_TYPE
Type name for GFCosDocument
|
baseObject, cosDocument, MAX_NUMBER_OF_ELEMENTScontextDependent| Constructor and Description |
|---|
GFCosDocument(COSDocument cosDocument)
Constructor using greenfield COSDocument
|
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getcontainsEmbeddedFiles()
true, if the document contains the EmbeddedFiles entry in the names dictionary
|
Boolean |
getdoesInfoMatchXMP()
true if Info dictionary is present and synchronized with the document metadata
|
String |
getfirstPageID()
id of the first page trailer, if the document is linearized.
|
String |
getheader()
the content of the PDF header
|
Long |
getheaderByte1()
first four bytes in the comment that follows the PDF header
|
Long |
getheaderByte2() |
Long |
getheaderByte3() |
Long |
getheaderByte4() |
Long |
getheaderOffset()
offset of the PDF document header
|
Boolean |
getisLinearized()
true if the document is linearized
|
Boolean |
getisOptionalContentPresent()
true if catalog contain OCProperties key
|
String |
getlastID()
id of the last trailer in the document
|
List<? extends Object> |
getLinkedObjects(String link) |
Boolean |
getMarked()
the value of the /Marked entry in the MarkInfo dictionary (false, if this entry is missing)
|
Boolean |
getNeedsRendering()
NeedsRendering entry in the document's Catalog (false by default)
|
Long |
getnrIndirects()
Number of indirect objects in the document
|
Long |
getpostEOFDataSize()
EOF must complies PDF/A standard
|
String |
getRequirements()
- null, if the /Requirements key is not present in the document Catalog
|
Double |
getversion()
version of the document
|
getFromValuegetExtraContext, getID, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetExtraContext, getID, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependentpublic static final String COS_DOCUMENT_TYPE
public GFCosDocument(COSDocument cosDocument)
cosDocument - greenfield COSDocumentpublic Long getnrIndirects()
getnrIndirects in interface CosDocumentpublic Double getversion()
CosDocumentgetversion in interface CosDocumentpublic Long getheaderOffset()
CosDocumentgetheaderOffset in interface CosDocumentpublic String getheader()
CosDocumentgetheader in interface CosDocumentpublic Long getheaderByte1()
CosDocumentgetheaderByte1 in interface CosDocumentpublic Long getheaderByte2()
getheaderByte2 in interface CosDocumentpublic Long getheaderByte3()
getheaderByte3 in interface CosDocumentpublic Long getheaderByte4()
getheaderByte4 in interface CosDocumentpublic Boolean getisOptionalContentPresent()
getisOptionalContentPresent in interface CosDocumentpublic Long getpostEOFDataSize()
getpostEOFDataSize in interface CosDocumentpublic String getfirstPageID()
CosDocumentgetfirstPageID in interface CosDocumentpublic String getlastID()
CosDocumentgetlastID in interface CosDocumentpublic Boolean getisLinearized()
CosDocumentgetisLinearized in interface CosDocumentpublic Boolean getdoesInfoMatchXMP()
CosDocumentgetdoesInfoMatchXMP in interface CosDocumentpublic Boolean getMarked()
CosDocumentgetMarked in interface CosDocumentpublic String getRequirements()
CosDocumentgetRequirements in interface CosDocumentpublic Boolean getNeedsRendering()
CosDocumentgetNeedsRendering in interface CosDocumentNeedsRendering entry in catalog contains
true value.public Boolean getcontainsEmbeddedFiles()
CosDocumentgetcontainsEmbeddedFiles in interface CosDocumentpublic List<? extends Object> getLinkedObjects(String link)
getLinkedObjects in interface ObjectgetLinkedObjects in class GenericModelObjectlink - - the name of a linkCopyright © 2015–2020 The veraPDF Consortium. All rights reserved.