Package org.verapdf.gf.model.impl.cos
Class GFCosDocument
java.lang.Object
org.verapdf.model.GenericModelObject
org.verapdf.gf.model.impl.cos.GFCosObject
org.verapdf.gf.model.impl.cos.GFCosDocument
- All Implemented Interfaces:
Object,CosDocument,CosObject
- Author:
- Timur Kamalov
-
Field Summary
FieldsFields inherited from class org.verapdf.gf.model.impl.cos.GFCosObject
baseObject, cosDocument, MAX_NUMBER_OF_ELEMENTSFields inherited from class org.verapdf.model.GenericModelObject
contextDependent -
Constructor Summary
ConstructorsConstructorDescriptionGFCosDocument(COSDocument cosDocument) Constructor using greenfield COSDocument -
Method Summary
Modifier and TypeMethodDescriptiontrue, if the document contains the EmbeddedFiles entry in the names dictionarytrue if the trailer dictionary contains Info keytrue if the document catalog dictionary contains PieceInfo entryvalue of the /DisplayDocTitle key in the ViewerPreferences dictionaryid of the first page trailer, if the document is linearized.string representation of id of the first page trailer, if the document is linearized.the content of the PDF headerfirst four bytes in the comment that follows the PDF headeroffset of the PDF document headerversion of the documenttrue if the document is linearizedtrue if catalog contain OCProperties keyid of the last trailer in the documentstring representation of id of the last trailer in the documentgetLinkedObjects(String link) the value of the /Marked entry in the MarkInfo dictionary (false, if this entry is missing)string representation of the MarkInfo dictionaryNeedsRendering entry in the document's Catalog (false by default)Number of indirect objects in the documentEOF must complies PDF/A standardstring representation of the value of /Requirements key in the document Catalog: - the space-concatenated values of the /S key in the requirement dictionaries in the array referenced by the /Requirements key - empty string if the array of requirement dictionaries is empty; - null, if the /Requirements key is not present in the document Catalogvalue of the /Suspects entry in the MarkInfo dictionarystring representation of the ViewerPreferences dictionaryMethods inherited from class org.verapdf.gf.model.impl.cos.GFCosObject
getFromValueMethods inherited from class org.verapdf.model.GenericModelObject
getContext, getExtraContext, getID, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.verapdf.model.baselayer.Object
getContext, getExtraContext, getID, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependent
-
Field Details
-
COS_DOCUMENT_TYPE
Type name for GFCosDocument- See Also:
-
-
Constructor Details
-
GFCosDocument
Constructor using greenfield COSDocument- Parameters:
cosDocument- greenfield COSDocument
-
-
Method Details
-
getnrIndirects
Number of indirect objects in the document- Specified by:
getnrIndirectsin interfaceCosDocument
-
getheaderVersion
Description copied from interface:CosDocumentversion of the document- Specified by:
getheaderVersionin interfaceCosDocument- Returns:
- version of pdf document
-
getheaderOffset
Description copied from interface:CosDocumentoffset of the PDF document header- Specified by:
getheaderOffsetin interfaceCosDocument
-
getheader
Description copied from interface:CosDocumentthe content of the PDF header- Specified by:
getheaderin interfaceCosDocument
-
getheaderByte1
Description copied from interface:CosDocumentfirst four bytes in the comment that follows the PDF header- Specified by:
getheaderByte1in interfaceCosDocument
-
getheaderByte2
- Specified by:
getheaderByte2in interfaceCosDocument
-
getheaderByte3
- Specified by:
getheaderByte3in interfaceCosDocument
-
getheaderByte4
- Specified by:
getheaderByte4in interfaceCosDocument
-
getisOptionalContentPresent
true if catalog contain OCProperties key- Specified by:
getisOptionalContentPresentin interfaceCosDocument
-
getpostEOFDataSize
EOF must complies PDF/A standard- Specified by:
getpostEOFDataSizein interfaceCosDocument
-
getfirstPageID
Description copied from interface:CosDocumentid of the first page trailer, if the document is linearized. Null, if the document is not linearized- Specified by:
getfirstPageIDin interfaceCosDocument- Returns:
- ID of first page trailer
-
getlastID
Description copied from interface:CosDocumentid of the last trailer in the document- Specified by:
getlastIDin interfaceCosDocument- Returns:
- ID of last document trailer
-
getfirstPageIDValue
Description copied from interface:CosDocumentstring representation of id of the first page trailer, if the document is linearized. Null, if the document is not linearized- Specified by:
getfirstPageIDValuein interfaceCosDocument
-
getlastIDValue
Description copied from interface:CosDocumentstring representation of id of the last trailer in the document- Specified by:
getlastIDValuein interfaceCosDocument
-
getisLinearized
Description copied from interface:CosDocumenttrue if the document is linearized- Specified by:
getisLinearizedin interfaceCosDocument- Returns:
- true if the current document is linearized
-
getMarked
Description copied from interface:CosDocumentthe value of the /Marked entry in the MarkInfo dictionary (false, if this entry is missing)- Specified by:
getMarkedin interfaceCosDocument
-
getDisplayDocTitle
Description copied from interface:CosDocumentvalue of the /DisplayDocTitle key in the ViewerPreferences dictionary- Specified by:
getDisplayDocTitlein interfaceCosDocument
-
getcontainsPieceInfo
Description copied from interface:CosDocumenttrue if the document catalog dictionary contains PieceInfo entry- Specified by:
getcontainsPieceInfoin interfaceCosDocument
-
getMarkInfo
Description copied from interface:CosDocumentstring representation of the MarkInfo dictionary- Specified by:
getMarkInfoin interfaceCosDocument
-
getViewerPreferences
Description copied from interface:CosDocumentstring representation of the ViewerPreferences dictionary- Specified by:
getViewerPreferencesin interfaceCosDocument
-
getcontainsInfo
Description copied from interface:CosDocumenttrue if the trailer dictionary contains Info key- Specified by:
getcontainsInfoin interfaceCosDocument
-
getSuspects
Description copied from interface:CosDocumentvalue of the /Suspects entry in the MarkInfo dictionary- Specified by:
getSuspectsin interfaceCosDocument
-
getRequirements
Description copied from interface:CosDocumentstring representation of the value of /Requirements key in the document Catalog: - the space-concatenated values of the /S key in the requirement dictionaries in the array referenced by the /Requirements key - empty string if the array of requirement dictionaries is empty; - null, if the /Requirements key is not present in the document Catalog- Specified by:
getRequirementsin interfaceCosDocument
-
getNeedsRendering
Description copied from interface:CosDocumentNeedsRendering entry in the document's Catalog (false by default)- Specified by:
getNeedsRenderingin interfaceCosDocument- Returns:
- true if
NeedsRenderingentry in catalog containstruevalue.
-
getcontainsEmbeddedFiles
Description copied from interface:CosDocumenttrue, if the document contains the EmbeddedFiles entry in the names dictionary- Specified by:
getcontainsEmbeddedFilesin interfaceCosDocument
-
getLinkedObjects
- Specified by:
getLinkedObjectsin interfaceObject- Overrides:
getLinkedObjectsin classGenericModelObject- Parameters:
link- - the name of a link- Returns:
- List of objects with the given link
-