Class ColorSpaceHelperFactory

java.lang.Object
org.apache.pdfbox.preflight.graphic.ColorSpaceHelperFactory

public class ColorSpaceHelperFactory extends Object
This factory create the right Helper according to the owner of the ColorSpace entry.
  • Constructor Details

    • ColorSpaceHelperFactory

      public ColorSpaceHelperFactory()
  • Method Details

    • getColorSpaceHelper

      Return an instance of ColorSpaceHelper according to the ColorSpaceRestriction value.
      • ColorSpaceRestriction.NO_PATTERN : returns NoPatternColorSpaceHelper
      • ColorSpaceRestriction.ONLY_DEVICE : returns DeviceColorSpaceHelper
      • ColorSpaceRestriction.NO_RESTRICTION (default) : returns StandardColorSpaceHelper
      Parameters:
      context - the PreflightContext to access useful data
      cs - the High level PDFBox object which represents the ColorSpace
      csr - the color space restriction
      Returns:
      the ColorSpaceHelper instance.