Top Description Fields Constructors Methods
org.apache.pdfbox.preflight.graphic

public Class DeviceColorSpaceHelper

extends StandardColorSpaceHelper
Class Inheritance
Imports
org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace, .PDIndexed, org.apache.pdfbox.preflight.PreflightContext, .ValidationResult.ValidationError

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

Inherited from org.apache.pdfbox.preflight.graphic.StandardColorSpaceHelper:
contexticcpwpdcs

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
processDeviceNColorSpace(PDColorSpace
the color space object to check.
colorSpace
)

Overrides org.apache.pdfbox.preflight.graphic.StandardColorSpaceHelper.processDeviceNColorSpace.

This method updates the given list with a ValidationError (ERROR_GRAPHIC_INVALID_PATTERN_COLOR_SPACE_FORBIDDEN) and returns false.

protected void
processIndexedColorSpace(PDColorSpace
the color space object to check.
colorSpace
)

Overrides org.apache.pdfbox.preflight.graphic.StandardColorSpaceHelper.processIndexedColorSpace.

Indexed color space is authorized only if the BaseColorSpace is a DeviceXXX color space.

protected void
processPatternColorSpace(PDColorSpace colorSpace)

Overrides org.apache.pdfbox.preflight.graphic.StandardColorSpaceHelper.processPatternColorSpace.

This method updates the given list with a ValidationError (ERROR_GRAPHIC_INVALID_PATTERN_COLOR_SPACE_FORBIDDEN) and returns false.

Inherited from org.apache.pdfbox.preflight.graphic.StandardColorSpaceHelper:
processAllColorSpaceprocessCalibratedColorSpaceprocessCYMKColorSpaceprocessDefaultColorSpaceprocessGrayColorSpaceprocessICCBasedColorSpaceprocessRGBColorSpaceprocessSeparationColorSpacevalidate

Constructor Detail

DeviceColorSpaceHelperback to summary
public DeviceColorSpaceHelper(PreflightContext _context, PDColorSpace _cs)

Method Detail

processDeviceNColorSpaceback to summary
protected void processDeviceNColorSpace(PDColorSpace colorSpace)

Overrides org.apache.pdfbox.preflight.graphic.StandardColorSpaceHelper.processDeviceNColorSpace.

This method updates the given list with a ValidationError (ERROR_GRAPHIC_INVALID_PATTERN_COLOR_SPACE_FORBIDDEN) and returns false.

Parameters
colorSpace:PDColorSpace

Doc from org.apache.pdfbox.preflight.graphic.StandardColorSpaceHelper.processDeviceNColorSpace.

the color space object to check.

Annotations
@Override
processIndexedColorSpaceback to summary
protected void processIndexedColorSpace(PDColorSpace colorSpace)

Overrides org.apache.pdfbox.preflight.graphic.StandardColorSpaceHelper.processIndexedColorSpace.

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.

Parameters
colorSpace:PDColorSpace

Doc from org.apache.pdfbox.preflight.graphic.StandardColorSpaceHelper.processIndexedColorSpace.

the color space object to check.

Annotations
@Override
processPatternColorSpaceback to summary
protected void processPatternColorSpace(PDColorSpace colorSpace)

Overrides org.apache.pdfbox.preflight.graphic.StandardColorSpaceHelper.processPatternColorSpace.

This method updates the given list with a ValidationError (ERROR_GRAPHIC_INVALID_PATTERN_COLOR_SPACE_FORBIDDEN) and returns false.

Annotations
@Override