Package org.verapdf.gf.model.impl.pd
Class GFPDPage
- java.lang.Object
-
- org.verapdf.model.GenericModelObject
-
- org.verapdf.gf.model.impl.pd.GFPDObject
-
- org.verapdf.gf.model.impl.pd.GFPDPage
-
public class GFPDPage extends GFPDObject implements PDPage
the object representing PDF page.- Author:
- Sergey Shemyakov
-
-
Field Summary
Fields Modifier and Type Field Description static StringLANDSCAPE_ORIENTATIONstatic StringOUTPUT_INTENTSLink name for all output intentsstatic StringPARENT_TRANSPARENCY_COLOR_SPACEstatic StringPD_PAGE_TYPEType name for GFPDPagestatic StringPORTRAIT_ORIENTATIONstatic StringSQUARE_ORIENTATIONstatic StringTRANSPARENCY_COLOR_SPACE-
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PDColorSpacegetBlendingColorSpace()BooleangetcontainsAA()true if the page dictionary contains the AA entryBooleangetcontainsGroupCS()contains group color spaceBooleangetcontainsPresSteps()true if the page contains presentation steps (/PresSteps in the page dictionary)BooleangetcontainsTransparency()true if the page contains transparencyList<? extends Object>getLinkedObjects(String link)Stringgetorientation()page orientation (Portrait, Landscape or Square)StringgetoutputColorSpace()color space of output icc profileLonggetpageNumber()page numberStringgetTabs()value of the /Tabs key in the page 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_PAGE_TYPE
public static final String PD_PAGE_TYPE
Type name for GFPDPage- See Also:
- Constant Field Values
-
OUTPUT_INTENTS
public static final String OUTPUT_INTENTS
Link name for all output intents- See Also:
- Constant Field Values
-
PORTRAIT_ORIENTATION
public static final String PORTRAIT_ORIENTATION
- See Also:
- Constant Field Values
-
LANDSCAPE_ORIENTATION
public static final String LANDSCAPE_ORIENTATION
- See Also:
- Constant Field Values
-
SQUARE_ORIENTATION
public static final String SQUARE_ORIENTATION
- See Also:
- Constant Field Values
-
TRANSPARENCY_COLOR_SPACE
public static final String TRANSPARENCY_COLOR_SPACE
- See Also:
- Constant Field Values
-
PARENT_TRANSPARENCY_COLOR_SPACE
public static final String PARENT_TRANSPARENCY_COLOR_SPACE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GFPDPage
public GFPDPage(PDPage pdPage)
Default constructor- Parameters:
pdPage- is greenfield parser PDPage.
-
-
Method Detail
-
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
-
getcontainsPresSteps
public Boolean getcontainsPresSteps()
Description copied from interface:PDPagetrue if the page contains presentation steps (/PresSteps in the page dictionary)- Specified by:
getcontainsPresStepsin interfacePDPage- Returns:
- true if the page contains presentation steps (/PresSteps in the page dictionary).
-
getcontainsTransparency
public Boolean getcontainsTransparency()
Description copied from interface:PDPagetrue if the page contains transparency- Specified by:
getcontainsTransparencyin interfacePDPage- Returns:
- true if the page contains transparency.
-
getcontainsGroupCS
public Boolean getcontainsGroupCS()
Description copied from interface:PDPagecontains group color space- Specified by:
getcontainsGroupCSin interfacePDPage- Returns:
- true if the page contains group which contains color space
-
getcontainsAA
public Boolean getcontainsAA()
Description copied from interface:PDPagetrue if the page dictionary contains the AA entry- Specified by:
getcontainsAAin interfacePDPage
-
getTabs
public String getTabs()
Description copied from interface:PDPagevalue of the /Tabs key in the page dictionary
-
getorientation
public String getorientation()
Description copied from interface:PDPagepage orientation (Portrait, Landscape or Square)- Specified by:
getorientationin interfacePDPage
-
getoutputColorSpace
public String getoutputColorSpace()
Description copied from interface:PDPagecolor space of output icc profile- Specified by:
getoutputColorSpacein interfacePDPage
-
getpageNumber
public Long getpageNumber()
Description copied from interface:PDPagepage number- Specified by:
getpageNumberin interfacePDPage
-
getBlendingColorSpace
public PDColorSpace getBlendingColorSpace()
-
-