Package org.verapdf.gf.model.impl.pd
Class GFPDDocument
- java.lang.Object
-
- org.verapdf.model.GenericModelObject
-
- org.verapdf.gf.model.impl.pd.GFPDObject
-
- org.verapdf.gf.model.impl.pd.GFPDDocument
-
- All Implemented Interfaces:
Object,PDDocument,PDObject
public class GFPDDocument extends GFPDObject implements PDDocument
- Author:
- Timur Kamalov
-
-
Field Summary
Fields Modifier and Type Field Description static StringACRO_FORMSLink name for acro formsstatic StringACTIONSLink name for additional actions of documentstatic StringALTERNATE_PRESENTATIONSLink name for alternate presentation of names tree of documentstatic StringLANGName of link to Lang value from the document catalog dictionarystatic StringMETADATALink name for main metadata of documentstatic StringOC_PROPERTIESLink name for optional content properties of the documentstatic StringOPEN_ACTIONLink name for open action of documentstatic StringOUTLINESLink name for all outlines of documentstatic StringOUTPUT_INTENTSLink name for all output intentsstatic StringPAGESLink name for pagesstatic StringPD_DOCUMENT_TYPEstatic StringPERMSName of link to Perms valuestatic StringSTRUCTURE_TREE_ROOTLink name for annotations structure tree root of document-
Fields inherited from class org.verapdf.gf.model.impl.pd.GFPDObject
contentStream, document, id, MAX_NUMBER_OF_ELEMENTS, pdcMap, pdFont, simpleCOSObject, simplePDObject
-
Fields inherited from class org.verapdf.model.GenericModelObject
contextDependent
-
-
Constructor Summary
Constructors Constructor Description GFPDDocument(PDDocument document)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleangetcontainsAA()true if the catalog dictionary contains the AA entryBooleangetcontainsAlternatePresentations()true if the document contains alternate presentations (/AlternatePresentations entry in the document names dictionary)List<? extends Object>getLinkedObjects(String link)StringgetmostCommonOrientation()if the most common orientation is Square, then second most common orientation if existsStringgetoutputColorSpace()color space of output icc profileBooleangetvalidPDF()true at the end of parsing if there were no unhandled exceptionsStringgetVersion()value of Version key of the document catalog dictionary-
Methods inherited from class org.verapdf.gf.model.impl.pd.GFPDObject
getentries, getID
-
Methods inherited from class org.verapdf.model.GenericModelObject
getContext, getExtraContext, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.verapdf.model.baselayer.Object
getContext, getExtraContext, getID, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependent
-
Methods inherited from interface org.verapdf.model.pdlayer.PDObject
getentries
-
-
-
-
Field Detail
-
PD_DOCUMENT_TYPE
public static final String PD_DOCUMENT_TYPE
- See Also:
- Constant Field Values
-
PAGES
public static final String PAGES
Link name for pages- See Also:
- Constant Field Values
-
METADATA
public static final String METADATA
Link name for main metadata of document- See Also:
- Constant Field Values
-
OUTPUT_INTENTS
public static final String OUTPUT_INTENTS
Link name for all output intents- See Also:
- Constant Field Values
-
ACRO_FORMS
public static final String ACRO_FORMS
Link name for acro forms- See Also:
- Constant Field Values
-
ACTIONS
public static final String ACTIONS
Link name for additional actions of document- See Also:
- Constant Field Values
-
OPEN_ACTION
public static final String OPEN_ACTION
Link name for open action of document- See Also:
- Constant Field Values
-
OUTLINES
public static final String OUTLINES
Link name for all outlines of document- See Also:
- Constant Field Values
-
STRUCTURE_TREE_ROOT
public static final String STRUCTURE_TREE_ROOT
Link name for annotations structure tree root of document- See Also:
- Constant Field Values
-
ALTERNATE_PRESENTATIONS
public static final String ALTERNATE_PRESENTATIONS
Link name for alternate presentation of names tree of document- See Also:
- Constant Field Values
-
OC_PROPERTIES
public static final String OC_PROPERTIES
Link name for optional content properties of the document- See Also:
- Constant Field Values
-
LANG
public static final String LANG
Name of link to Lang value from the document catalog dictionary- See Also:
- Constant Field Values
-
PERMS
public static final String PERMS
Name of link to Perms value- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GFPDDocument
public GFPDDocument(PDDocument document)
-
-
Method Detail
-
getcontainsAlternatePresentations
public Boolean getcontainsAlternatePresentations()
Description copied from interface:PDDocumenttrue if the document contains alternate presentations (/AlternatePresentations entry in the document names dictionary)- Specified by:
getcontainsAlternatePresentationsin interfacePDDocument
-
getvalidPDF
public Boolean getvalidPDF()
Description copied from interface:PDDocumenttrue at the end of parsing if there were no unhandled exceptions- Specified by:
getvalidPDFin interfacePDDocument
-
getcontainsAA
public Boolean getcontainsAA()
Description copied from interface:PDDocumenttrue if the catalog dictionary contains the AA entry- Specified by:
getcontainsAAin interfacePDDocument
-
getoutputColorSpace
public String getoutputColorSpace()
Description copied from interface:PDDocumentcolor space of output icc profile- Specified by:
getoutputColorSpacein interfacePDDocument
-
getLinkedObjects
public List<? extends Object> getLinkedObjects(String link)
- Specified by:
getLinkedObjectsin interfaceObject- Overrides:
getLinkedObjectsin classGenericModelObject- Parameters:
link- - the name of a link- Returns:
- List of objects with the given link
-
getVersion
public String getVersion()
Description copied from interface:PDDocumentvalue of Version key of the document catalog dictionary- Specified by:
getVersionin interfacePDDocument
-
getmostCommonOrientation
public String getmostCommonOrientation()
Description copied from interface:PDDocumentif the most common orientation is Square, then second most common orientation if exists- Specified by:
getmostCommonOrientationin interfacePDDocument
-
-