Package org.verapdf.features.gf
Class GFFeaturesObjectCreator
java.lang.Object
org.verapdf.features.gf.GFFeaturesObjectCreator
Creates Feature Objects and report them to Features Reporter
- Author:
- Maksim Bezrukov
-
Method Summary
Modifier and TypeMethodDescriptionstatic ActionFeaturesObjectcreateActionFeaturesObject(PDAction action, ActionFeaturesObjectAdapter.Location location) static AnnotationFeaturesObjectcreateAnnotFeaturesObject(PDAnnotation annot, String id, String popupId, Set<String> formXObjects) Creates new GFAnnotationFeaturesObjectAdapterstatic ColorSpaceFeaturesObjectcreateColorSpaceFeaturesObject(PDColorSpace colorSpace, String id, String iccProfileChild, String colorSpaceChild) Constructs new GFColorSpaceFeaturesObjectAdapterstatic DocSecurityFeaturesObjectcreateDocSecurityFeaturesObject(PDEncryption encryption) Creates new GFDocSecurityFeaturesObjectAdapterstatic EmbeddedFileFeaturesObjectcreateEmbeddedFileFeaturesObject(COSObject embFile, int index) Creates new GFEmbeddedFileFeaturesObjectAdapterstatic ExtGStateFeaturesObjectcreateExtGStateFeaturesObject(PDExtGState exGState, String id, String fontChildID) Creates new GFExtGStateFeaturesObjectAdapterstatic FontFeaturesObjectcreateFontFeaturesObject(PDFont fontLike, String id, Set<String> extGStateChild, Set<String> colorSpaceChild, Set<String> patternChild, Set<String> shadingChild, Set<String> xobjectChild, Set<String> fontChild, Set<String> propertiesChild) Constructs new GFFontFeaturesObjectAdapterstatic FormXObjectFeaturesObjectcreateFormXObjectFeaturesObject(PDXForm formXObject, String id, String groupChild, Set<String> extGStateChild, Set<String> colorSpaceChild, Set<String> patternChild, Set<String> shadingChild, Set<String> xobjectChild, Set<String> fontChild, Set<String> propertiesChild) Constructs new GFFormXObjectFeaturesObjectAdapterstatic ICCProfileFeaturesObjectcreateICCProfileFeaturesObject(ICCProfile profile, String id) Creates new GFICCProfileFeaturesObjectAdapterstatic ImageXObjectFeaturesObjectcreateImageXObjectFeaturesObject(PDXImage imageXObject, String id, String colorSpaceChild, String maskChild, String sMaskChild, Set<String> alternatesChild) Constructs new GFImageXObjectFeaturesObjectstatic InfoDictFeaturesObjectCreates new GFInfoDictFeaturesObjectAdapterstatic LowLvlInfoFeaturesObjectcreateLowLvlInfoFeaturesObject(COSDocument document) Creates new LowLvlInfoFeaturesObjectstatic MetadataFeaturesObjectcreateMetadataFeaturesObject(PDMetadata metadata) Creates new GFMetadataFeaturesObjectAdapterstatic OutlinesFeaturesObjectCreates new GFOutlinesFeaturesObjectAdapterstatic OutputIntentFeaturesObjectcreateOutputIntentFeaturesObject(PDOutputIntent outInt, String iccProfileID) Creates new GFOutputIntentsFeaturesObjectAdapterstatic PageFeaturesObjectcreatePageFeaturesObject(PDPage page, String label, String thumb, Set<String> annotsId, Set<String> extGStateChild, Set<String> colorSpaceChild, Set<String> patternChild, Set<String> shadingChild, Set<String> xobjectChild, Set<String> fontChild, Set<String> propertiesChild, int index) Creates new GFPageFeaturesObjectAdapterstatic PostScriptFeaturesObjectConstructs new GFPostScriptXObjectFeaturesObjectAdapterstatic PropertiesDictFeaturesObjectcreatePropertiesDictFeaturesObject(COSObject properties, String id) Constructs new GFPropertiesDictFeaturesObjectAdapterstatic ShadingFeaturesObjectcreateShadingFeaturesObject(PDShading shading, String id, String colorSpaceChild) Constructs new GFShadingFeaturesObjectAdapterstatic ShadingPatternFeaturesObjectcreateShadingPatternFeaturesObject(PDShadingPattern shadingPattern, String id, String shadingChild, String extGStateChild) Constructs new GFShadingPatternFeaturesObjectAdapterstatic SignatureFeaturesObjectcreateSignatureFeaturesObject(PDSignature signature) Constructs new GFSignatureFeaturesObjectAdapterstatic TilingPatternFeaturesObjectcreateTilingPatternFeaturesObject(PDTilingPattern tilingPattern, String id, Set<String> extGStateChild, Set<String> colorSpaceChild, Set<String> patternChild, Set<String> shadingChild, Set<String> xobjectChild, Set<String> fontChild, Set<String> propertiesChild) Constructs new GFTilingPatternFeaturesObjectAdapter
-
Method Details
-
createInfoDictFeaturesObject
Creates new GFInfoDictFeaturesObjectAdapter- Parameters:
info- COSObject class from greenfield, which represents a document info dictionary for feature report- Returns:
- created GFInfoDictFeaturesObjectAdapter
-
createMetadataFeaturesObject
Creates new GFMetadataFeaturesObjectAdapter- Parameters:
metadata- PDMetadata class from greenfield, which represents a metadata for feature report- Returns:
- created GFMetadataFeaturesObjectAdapter
-
createDocSecurityFeaturesObject
Creates new GFDocSecurityFeaturesObjectAdapter- Parameters:
encryption- PDEncryption class from greenfield, which represents an encryption for feature report- Returns:
- created GFDocSecurityFeaturesObjectAdapter
-
createLowLvlInfoFeaturesObject
Creates new LowLvlInfoFeaturesObject- Parameters:
document- COSDocument class from greenfield, which represents a document for feature report- Returns:
- created LowLvlInfoFeaturesObject
-
createEmbeddedFileFeaturesObject
public static EmbeddedFileFeaturesObject createEmbeddedFileFeaturesObject(COSObject embFile, int index) Creates new GFEmbeddedFileFeaturesObjectAdapter- Parameters:
embFile- COSObject class from greenfield, which represents a file specification with embedded file for feature report- Returns:
- created GFEmbeddedFileFeaturesObjectAdapter
-
createOutputIntentFeaturesObject
public static OutputIntentFeaturesObject createOutputIntentFeaturesObject(PDOutputIntent outInt, String iccProfileID) Creates new GFOutputIntentsFeaturesObjectAdapter- Parameters:
outInt- PDOutputIntent class from greenfield, which represents an outputIntent for feature reporticcProfileID- id of the icc profile which use in this outputIntent- Returns:
- created GFOutputIntentsFeaturesObjectAdapter
-
createOutlinesFeaturesObject
Creates new GFOutlinesFeaturesObjectAdapter- Parameters:
outlines- PDPage class from greenfield, which represents a page for feature report- Returns:
- created GFOutlinesFeaturesObjectAdapter
-
createAnnotFeaturesObject
public static AnnotationFeaturesObject createAnnotFeaturesObject(PDAnnotation annot, String id, String popupId, Set<String> formXObjects) Creates new GFAnnotationFeaturesObjectAdapter- Parameters:
annot- PDAnnotation class from greenfield, which represents an annotation for feature reportid- page idpopupId- id of the popup annotation for this annotationformXObjects- set of id of the form XObjects which used in appearance stream of this annotation- Returns:
- created GFAnnotationFeaturesObjectAdapter
-
createPageFeaturesObject
public static PageFeaturesObject createPageFeaturesObject(PDPage page, String label, String thumb, Set<String> annotsId, Set<String> extGStateChild, Set<String> colorSpaceChild, Set<String> patternChild, Set<String> shadingChild, Set<String> xobjectChild, Set<String> fontChild, Set<String> propertiesChild, int index) Creates new GFPageFeaturesObjectAdapter- Parameters:
page- greenfield class represents page objectthumb- thumbnail image idannotsId- set of annotations id which contains in this pageextGStateChild- set of extGState id which contains in resource dictionary of this pagecolorSpaceChild- set of ColorSpace id which contains in resource dictionary of this pagepatternChild- set of pattern id which contains in resource dictionary of this pageshadingChild- set of shading id which contains in resource dictionary of this pagexobjectChild- set of XObject id which contains in resource dictionary of this pagefontChild- set of font id which contains in resource dictionary of this pagepropertiesChild- set of properties id which contains in resource dictionary of this pageindex- page index- Returns:
- created GFPageFeaturesObjectAdapter
-
createICCProfileFeaturesObject
public static ICCProfileFeaturesObject createICCProfileFeaturesObject(ICCProfile profile, String id) Creates new GFICCProfileFeaturesObjectAdapter- Parameters:
profile- ICCProfile which represents the icc profile for feature reportid- id of the profile- Returns:
- created GFICCProfileFeaturesObjectAdapter
-
createExtGStateFeaturesObject
public static ExtGStateFeaturesObject createExtGStateFeaturesObject(PDExtGState exGState, String id, String fontChildID) Creates new GFExtGStateFeaturesObjectAdapter- Parameters:
exGState- PDExtGState which represents extended graphics state for feature reportid- id of the objectfontChildID- id of the font child- Returns:
- created GFExtGStateFeaturesObjectAdapter
-
createColorSpaceFeaturesObject
public static ColorSpaceFeaturesObject createColorSpaceFeaturesObject(PDColorSpace colorSpace, String id, String iccProfileChild, String colorSpaceChild) Constructs new GFColorSpaceFeaturesObjectAdapter- Parameters:
colorSpace- PDColorSpace which represents colorspace for feature reportid- id of the objecticcProfileChild- id of the iccprofile childcolorSpaceChild- id of the colorspace child- Returns:
- created GFColorSpaceFeaturesObjectAdapter
-
createTilingPatternFeaturesObject
public static TilingPatternFeaturesObject createTilingPatternFeaturesObject(PDTilingPattern tilingPattern, String id, Set<String> extGStateChild, Set<String> colorSpaceChild, Set<String> patternChild, Set<String> shadingChild, Set<String> xobjectChild, Set<String> fontChild, Set<String> propertiesChild) Constructs new GFTilingPatternFeaturesObjectAdapter- Parameters:
tilingPattern- PDTilingPattern which represents tilling pattern for feature reportid- id of the objectextGStateChild- set of external graphics state id which contains in resource dictionary of this patterncolorSpaceChild- set of ColorSpace id which contains in resource dictionary of this patternpatternChild- set of pattern id which contains in resource dictionary of this patternshadingChild- set of shading id which contains in resource dictionary of this patternxobjectChild- set of XObject id which contains in resource dictionary of this patternfontChild- set of font id which contains in resource dictionary of this patternpropertiesChild- set of properties id which contains in resource dictionary of this pattern- Returns:
- created GFTilingPatternFeaturesObjectAdapter
-
createShadingPatternFeaturesObject
public static ShadingPatternFeaturesObject createShadingPatternFeaturesObject(PDShadingPattern shadingPattern, String id, String shadingChild, String extGStateChild) Constructs new GFShadingPatternFeaturesObjectAdapter- Parameters:
shadingPattern- PDShadingPattern which represents shading pattern for feature reportid- id of the objectextGStateChild- external graphics state id which contains in this shading patternshadingChild- shading id which contains in this shading pattern- Returns:
- created GFShadingPatternFeaturesObjectAdapter
-
createShadingFeaturesObject
public static ShadingFeaturesObject createShadingFeaturesObject(PDShading shading, String id, String colorSpaceChild) Constructs new GFShadingFeaturesObjectAdapter- Parameters:
shading- PDShading which represents shading for feature reportid- id of the objectcolorSpaceChild- colorSpace id which contains in this shading pattern- Returns:
- created GFShadingFeaturesObjectAdapter
-
createImageXObjectFeaturesObject
public static ImageXObjectFeaturesObject createImageXObjectFeaturesObject(PDXImage imageXObject, String id, String colorSpaceChild, String maskChild, String sMaskChild, Set<String> alternatesChild) Constructs new GFImageXObjectFeaturesObject- Parameters:
imageXObject- PDXImage which represents image xobject for feature reportid- id of the objectcolorSpaceChild- colorSpace id which contains in this image xobjectmaskChild- image xobject id which contains in this image xobject as it's masksMaskChild- image xobject id which contains in this image xobject as it's smaskalternatesChild- set of image xobject ids which contains in this image xobject as alternates- Returns:
- created GFImageXObjectFeaturesObject
-
createFormXObjectFeaturesObject
public static FormXObjectFeaturesObject createFormXObjectFeaturesObject(PDXForm formXObject, String id, String groupChild, Set<String> extGStateChild, Set<String> colorSpaceChild, Set<String> patternChild, Set<String> shadingChild, Set<String> xobjectChild, Set<String> fontChild, Set<String> propertiesChild) Constructs new GFFormXObjectFeaturesObjectAdapter- Parameters:
formXObject- PDXForm which represents form xobject for feature reportid- id of the objectgroupChild- id of the group xobject which contains in the given form xobjectextGStateChild- set of external graphics state id which contains in resource dictionary of this xobjectcolorSpaceChild- set of ColorSpace id which contains in resource dictionary of this xobjectpatternChild- set of pattern id which contains in resource dictionary of this xobjectshadingChild- set of shading id which contains in resource dictionary of this xobjectxobjectChild- set of XObject id which contains in resource dictionary of this xobjectfontChild- set of font id which contains in resource dictionary of this patternpropertiesChild- set of properties id which contains in resource dictionary of this xobject- Returns:
- created GFFormXObjectFeaturesObjectAdapter
-
createFontFeaturesObject
public static FontFeaturesObject createFontFeaturesObject(PDFont fontLike, String id, Set<String> extGStateChild, Set<String> colorSpaceChild, Set<String> patternChild, Set<String> shadingChild, Set<String> xobjectChild, Set<String> fontChild, Set<String> propertiesChild) Constructs new GFFontFeaturesObjectAdapter- Parameters:
fontLike- PDFont which represents font for feature reportid- id of the objectextGStateChild- set of external graphics state id which contains in resource dictionary of this fontcolorSpaceChild- set of ColorSpace id which contains in resource dictionary of this fontpatternChild- set of pattern id which contains in resource dictionary of this fontshadingChild- set of shading id which contains in resource dictionary of this fontxobjectChild- set of XObject id which contains in resource dictionary of this fontfontChild- set of font id which contains in resource dictionary of this fontpropertiesChild- set of properties id which contains in resource dictionary of this font- Returns:
- created GFFontFeaturesObjectAdapter
-
createPropertiesDictFeaturesObject
public static PropertiesDictFeaturesObject createPropertiesDictFeaturesObject(COSObject properties, String id) Constructs new GFPropertiesDictFeaturesObjectAdapter- Parameters:
properties- COSObject which represents properties for feature reportid- id of the object- Returns:
- created GFPropertiesDictFeaturesObjectAdapter
-
createPostScriptXObjectFeaturesObject
Constructs new GFPostScriptXObjectFeaturesObjectAdapter- Parameters:
id- id of the object- Returns:
- created GFPostScriptXObjectFeaturesObjectAdapter
-
createSignatureFeaturesObject
Constructs new GFSignatureFeaturesObjectAdapter- Parameters:
signature- greenfield signature object- Returns:
- created GFSignatureFeaturesObjectAdapter
-
createActionFeaturesObject
public static ActionFeaturesObject createActionFeaturesObject(PDAction action, ActionFeaturesObjectAdapter.Location location) -
createInteractiveFormFieldFeaturesObject
public static InteractiveFormFieldFeaturesObject createInteractiveFormFieldFeaturesObject(PDFormField formField)
-