Class DeviceColorSpaceHelper
java.lang.Object
org.apache.pdfbox.preflight.graphic.StandardColorSpaceHelper
org.apache.pdfbox.preflight.graphic.DeviceColorSpaceHelper
- All Implemented Interfaces:
ColorSpaceHelper
This class defines restrictions on Color Spaces. It checks the consistency of the Color space with the
DestOutputIntent, if the color space isn't a Device Color space or a Indexed color space using Device the validation
will fail.
-
Field Summary
Fields inherited from class StandardColorSpaceHelper
context, iccpw, pdcs -
Constructor Summary
ConstructorsConstructorDescriptionDeviceColorSpaceHelper(PreflightContext _context, org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace _cs) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprocessDeviceNColorSpace(org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace colorSpace) This method updates the given list with a ValidationError (ERROR_GRAPHIC_INVALID_PATTERN_COLOR_SPACE_FORBIDDEN) and returns false.protected voidprocessIndexedColorSpace(org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace colorSpace) Indexed color space is authorized only if the BaseColorSpace is a DeviceXXX color space.protected voidprocessPatternColorSpace(org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace colorSpace) This method updates the given list with a ValidationError (ERROR_GRAPHIC_INVALID_PATTERN_COLOR_SPACE_FORBIDDEN) and returns false.
-
Constructor Details
-
DeviceColorSpaceHelper
public DeviceColorSpaceHelper(PreflightContext _context, org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace _cs)
-
-
Method Details
-
processPatternColorSpace
protected void processPatternColorSpace(org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace colorSpace) This method updates the given list with a ValidationError (ERROR_GRAPHIC_INVALID_PATTERN_COLOR_SPACE_FORBIDDEN) and returns false.- Overrides:
processPatternColorSpacein classStandardColorSpaceHelper- Parameters:
colorSpace-
-
processDeviceNColorSpace
protected void processDeviceNColorSpace(org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace colorSpace) This method updates the given list with a ValidationError (ERROR_GRAPHIC_INVALID_PATTERN_COLOR_SPACE_FORBIDDEN) and returns false.- Overrides:
processDeviceNColorSpacein classStandardColorSpaceHelper- Parameters:
colorSpace- the color space object to check.
-
processIndexedColorSpace
protected void processIndexedColorSpace(org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace colorSpace) Indexed color space is authorized only if the BaseColorSpace is a DeviceXXX color space. In all other cases the given list is updated with a ValidationError (ERROR_GRAPHIC_INVALID_PATTERN_COLOR_SPACE_FORBIDDEN) and returns false.- Overrides:
processIndexedColorSpacein classStandardColorSpaceHelper- Parameters:
colorSpace- the color space object to check.
-