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 String
LANDSCAPE_ORIENTATION
static String
OUTPUT_INTENTS
Link name for all output intentsstatic String
PARENT_TRANSPARENCY_COLOR_SPACE
static String
PD_PAGE_TYPE
Type name for GFPDPagestatic String
PORTRAIT_ORIENTATION
static String
SQUARE_ORIENTATION
static String
TRANSPARENCY_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 PDColorSpace
getBlendingColorSpace()
Boolean
getcontainsAA()
true if the page dictionary contains the AA entryBoolean
getcontainsGroupCS()
contains group color spaceBoolean
getcontainsPresSteps()
true if the page contains presentation steps (/PresSteps in the page dictionary)Boolean
getcontainsTransparency()
true if the page contains transparencyList<? extends Object>
getLinkedObjects(String link)
String
getorientation()
page orientation (Portrait, Landscape or Square)String
getoutputColorSpace()
color space of output icc profileLong
getpageNumber()
page numberString
getTabs()
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:
getLinkedObjects
in interfaceObject
- Overrides:
getLinkedObjects
in classGenericModelObject
- Parameters:
link
- - the name of a link- Returns:
- List of objects with the given link
-
getcontainsPresSteps
public Boolean getcontainsPresSteps()
Description copied from interface:PDPage
true if the page contains presentation steps (/PresSteps in the page dictionary)- Specified by:
getcontainsPresSteps
in interfacePDPage
- Returns:
- true if the page contains presentation steps (/PresSteps in the page dictionary).
-
getcontainsTransparency
public Boolean getcontainsTransparency()
Description copied from interface:PDPage
true if the page contains transparency- Specified by:
getcontainsTransparency
in interfacePDPage
- Returns:
- true if the page contains transparency.
-
getcontainsGroupCS
public Boolean getcontainsGroupCS()
Description copied from interface:PDPage
contains group color space- Specified by:
getcontainsGroupCS
in interfacePDPage
- Returns:
- true if the page contains group which contains color space
-
getcontainsAA
public Boolean getcontainsAA()
Description copied from interface:PDPage
true if the page dictionary contains the AA entry- Specified by:
getcontainsAA
in interfacePDPage
-
getTabs
public String getTabs()
Description copied from interface:PDPage
value of the /Tabs key in the page dictionary
-
getorientation
public String getorientation()
Description copied from interface:PDPage
page orientation (Portrait, Landscape or Square)- Specified by:
getorientation
in interfacePDPage
-
getoutputColorSpace
public String getoutputColorSpace()
Description copied from interface:PDPage
color space of output icc profile- Specified by:
getoutputColorSpace
in interfacePDPage
-
getpageNumber
public Long getpageNumber()
Description copied from interface:PDPage
page number- Specified by:
getpageNumber
in interfacePDPage
-
getBlendingColorSpace
public PDColorSpace getBlendingColorSpace()
-
-