Class ColorSpaceHelperFactory
java.lang.Object
org.apache.pdfbox.preflight.graphic.ColorSpaceHelperFactory
This factory create the right Helper according to the owner of the ColorSpace entry.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Enum used as argument of methods of this factory to return the right Helper. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetColorSpaceHelper
(PreflightContext context, PDColorSpace cs, ColorSpaceHelperFactory.ColorSpaceRestriction csr) Return an instance of ColorSpaceHelper according to the ColorSpaceRestriction value.
-
Constructor Details
-
ColorSpaceHelperFactory
public ColorSpaceHelperFactory()
-
-
Method Details
-
getColorSpaceHelper
public ColorSpaceHelper getColorSpaceHelper(PreflightContext context, PDColorSpace cs, ColorSpaceHelperFactory.ColorSpaceRestriction csr) 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 datacs
- the High level PDFBox object which represents the ColorSpacecsr
- the color space restriction- Returns:
- the ColorSpaceHelper instance.
-