Class GFFeaturesObjectCreator

java.lang.Object
org.verapdf.features.gf.GFFeaturesObjectCreator

public final class GFFeaturesObjectCreator extends Object
Creates Feature Objects and report them to Features Reporter
Author:
Maksim Bezrukov
  • Method Details

    • createInfoDictFeaturesObject

      public static InfoDictFeaturesObject createInfoDictFeaturesObject(COSObject info)
      Creates new GFInfoDictFeaturesObjectAdapter
      Parameters:
      info - COSObject class from greenfield, which represents a document info dictionary for feature report
      Returns:
      created GFInfoDictFeaturesObjectAdapter
    • createMetadataFeaturesObject

      public static MetadataFeaturesObject createMetadataFeaturesObject(PDMetadata metadata)
      Creates new GFMetadataFeaturesObjectAdapter
      Parameters:
      metadata - PDMetadata class from greenfield, which represents a metadata for feature report
      Returns:
      created GFMetadataFeaturesObjectAdapter
    • createDocSecurityFeaturesObject

      public static DocSecurityFeaturesObject createDocSecurityFeaturesObject(PDEncryption encryption)
      Creates new GFDocSecurityFeaturesObjectAdapter
      Parameters:
      encryption - PDEncryption class from greenfield, which represents an encryption for feature report
      Returns:
      created GFDocSecurityFeaturesObjectAdapter
    • createLowLvlInfoFeaturesObject

      public static LowLvlInfoFeaturesObject createLowLvlInfoFeaturesObject(COSDocument document)
      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 report
      iccProfileID - id of the icc profile which use in this outputIntent
      Returns:
      created GFOutputIntentsFeaturesObjectAdapter
    • createOutlinesFeaturesObject

      public static OutlinesFeaturesObject createOutlinesFeaturesObject(PDOutlineDictionary outlines)
      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 report
      id - page id
      popupId - id of the popup annotation for this annotation
      formXObjects - 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 object
      thumb - thumbnail image id
      annotsId - set of annotations id which contains in this page
      extGStateChild - set of extGState id which contains in resource dictionary of this page
      colorSpaceChild - set of ColorSpace id which contains in resource dictionary of this page
      patternChild - set of pattern id which contains in resource dictionary of this page
      shadingChild - set of shading id which contains in resource dictionary of this page
      xobjectChild - set of XObject id which contains in resource dictionary of this page
      fontChild - set of font id which contains in resource dictionary of this page
      propertiesChild - set of properties id which contains in resource dictionary of this page
      index - 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 report
      id - 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 report
      id - id of the object
      fontChildID - 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 report
      id - id of the object
      iccProfileChild - id of the iccprofile child
      colorSpaceChild - 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 report
      id - id of the object
      extGStateChild - set of external graphics state id which contains in resource dictionary of this pattern
      colorSpaceChild - set of ColorSpace id which contains in resource dictionary of this pattern
      patternChild - set of pattern id which contains in resource dictionary of this pattern
      shadingChild - set of shading id which contains in resource dictionary of this pattern
      xobjectChild - set of XObject id which contains in resource dictionary of this pattern
      fontChild - set of font id which contains in resource dictionary of this pattern
      propertiesChild - 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 report
      id - id of the object
      extGStateChild - external graphics state id which contains in this shading pattern
      shadingChild - 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 report
      id - id of the object
      colorSpaceChild - 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 report
      id - id of the object
      colorSpaceChild - colorSpace id which contains in this image xobject
      maskChild - image xobject id which contains in this image xobject as it's mask
      sMaskChild - image xobject id which contains in this image xobject as it's smask
      alternatesChild - 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 report
      id - id of the object
      groupChild - id of the group xobject which contains in the given form xobject
      extGStateChild - set of external graphics state id which contains in resource dictionary of this xobject
      colorSpaceChild - set of ColorSpace id which contains in resource dictionary of this xobject
      patternChild - set of pattern id which contains in resource dictionary of this xobject
      shadingChild - set of shading id which contains in resource dictionary of this xobject
      xobjectChild - set of XObject id which contains in resource dictionary of this xobject
      fontChild - set of font id which contains in resource dictionary of this pattern
      propertiesChild - 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 report
      id - id of the object
      extGStateChild - set of external graphics state id which contains in resource dictionary of this font
      colorSpaceChild - set of ColorSpace id which contains in resource dictionary of this font
      patternChild - set of pattern id which contains in resource dictionary of this font
      shadingChild - set of shading id which contains in resource dictionary of this font
      xobjectChild - set of XObject id which contains in resource dictionary of this font
      fontChild - set of font id which contains in resource dictionary of this font
      propertiesChild - 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 report
      id - id of the object
      Returns:
      created GFPropertiesDictFeaturesObjectAdapter
    • createPostScriptXObjectFeaturesObject

      public static PostScriptFeaturesObject createPostScriptXObjectFeaturesObject(String id)
      Constructs new GFPostScriptXObjectFeaturesObjectAdapter
      Parameters:
      id - id of the object
      Returns:
      created GFPostScriptXObjectFeaturesObjectAdapter
    • createSignatureFeaturesObject

      public static SignatureFeaturesObject createSignatureFeaturesObject(PDSignature signature)
      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)