public class PBCosDocument extends PBCosObject implements CosDocument
| Modifier and Type | Field and Description |
|---|---|
static String |
COS_DOCUMENT_TYPE
Type name for PBCosDocument
|
static String |
DOCUMENT |
static String |
EMBEDDED_FILES |
static String |
ID |
static String |
INDIRECT_OBJECTS |
static String |
REQUIREMENTS |
static String |
TRAILER |
static String |
XREF |
baseObject, MAX_NUMBER_OF_ELEMENTScontextDependent| Constructor and Description |
|---|
PBCosDocument(COSDocument cosDocument,
PDFAFlavour flavour)
Constructor using pdfbox COSDocument
|
PBCosDocument(PDDocument pdDocument,
PDFAFlavour flavour)
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
Boolean |
getcontainsEmbeddedFiles()
true, if the document contains the EmbeddedFiles entry in the names dictionary
|
Boolean |
getDisplayDocTitle()
value of the /DisplayDocTitle key in the ViewerPreferences 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
|
Double |
getheaderVersion()
version of the document
|
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
|
Boolean |
getSuspects()
value of the /Suspects entry in the MarkInfo dictionary
|
getFromValuegetContext, getExtraContext, getID, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependentclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContext, getExtraContext, getID, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependentpublic static final String COS_DOCUMENT_TYPE
public static final String TRAILER
public static final String XREF
public static final String INDIRECT_OBJECTS
public static final String DOCUMENT
public static final String EMBEDDED_FILES
public static final String ID
public static final String REQUIREMENTS
public PBCosDocument(PDDocument pdDocument, PDFAFlavour flavour)
pdDocument - pdfbox PDDocumentpublic PBCosDocument(COSDocument cosDocument, PDFAFlavour flavour)
cosDocument - pdfbox COSDocumentpublic Long getnrIndirects()
getnrIndirects in interface CosDocumentpublic Double getheaderVersion()
CosDocumentgetheaderVersion 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 Boolean getSuspects()
CosDocumentgetSuspects in interface CosDocumentpublic Boolean getDisplayDocTitle()
CosDocumentgetDisplayDocTitle in interface CosDocumentpublic String getRequirements()
CosDocumentgetRequirements in interface CosDocumentpublic Boolean getNeedsRendering()
CosDocumentgetNeedsRendering in interface CosDocumentNeedsRendering entry contains true valuepublic 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–2021 The veraPDF Consortium. All rights reserved.