public class StandardColorSpaceHelper extends Object implements ColorSpaceHelper
Modifier and Type | Field and Description |
---|---|
protected PreflightContext |
context
The context which contains useful information to process the validation.
|
protected ICCProfileWrapper |
iccpw
The ICCProfile contained in the DestOutputIntent
|
protected org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace |
pdcs
High level object which represents the colors space to check.
|
Modifier | Constructor and Description |
---|---|
protected |
StandardColorSpaceHelper(PreflightContext _context,
org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace _cs) |
Modifier and Type | Method and Description |
---|---|
protected void |
processAllColorSpace(org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace colorSpace)
Method called by the validate method.
|
protected void |
processCalibratedColorSpace(org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace colorSpace)
Method called by the processAllColorSpace if the ColorSpace to check is a calibrated color (CalGray, CalRGB, Lab).
|
protected void |
processCYMKColorSpace(org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace colorSpace)
Method called by the processAllColorSpace if the ColorSpace to check is DeviceCYMK.
|
protected boolean |
processDefaultColorSpace(org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace colorSpace)
Look up in the closest PDResources objects if there are a default ColorSpace.
|
protected void |
processDeviceNColorSpace(org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace colorSpace)
Method called by the processAllColorSpace if the ColorSpace to check is DeviceN.
|
protected void |
processGrayColorSpace(org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace colorSpace)
Method called by the processAllColorSpace if the ColorSpace to check is DeviceGray.
|
protected void |
processICCBasedColorSpace(org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace colorSpace)
Method called by the processAllColorSpace if the ColorSpace to check is a ICCBased color space.
|
protected void |
processIndexedColorSpace(org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace colorSpace)
Method called by the processAllColorSpace if the ColorSpace to check is Indexed.
|
protected void |
processPatternColorSpace(org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace colorSpace)
Method called by the processAllColorSpace if the ColorSpace to check is a Pattern.
|
protected void |
processRGBColorSpace(org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace colorSpace)
Method called by the processAllColorSpace if the ColorSpace to check is DeviceRGB.
|
protected void |
processSeparationColorSpace(org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace colorSpace)
Method called by the processAllColorSpace if the ColorSpace to check is Separation.
|
void |
validate()
Process the ColorSpace validation.
|
protected PreflightContext context
protected ICCProfileWrapper iccpw
protected org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace pdcs
protected StandardColorSpaceHelper(PreflightContext _context, org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace _cs)
public final void validate() throws ValidationException
ColorSpaceHelper
validate
in interface ColorSpaceHelper
ValidationException
protected final void processAllColorSpace(org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace colorSpace)
colorSpace
- the color space object to check.protected void processRGBColorSpace(org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace colorSpace)
protected void processCYMKColorSpace(org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace colorSpace)
protected void processPatternColorSpace(org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace colorSpace)
colorSpace
- protected void processGrayColorSpace(org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace colorSpace)
protected void processCalibratedColorSpace(org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace colorSpace)
colorSpace
- protected void processICCBasedColorSpace(org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace colorSpace)
colorSpace
- the color space object to check.protected void processDeviceNColorSpace(org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace colorSpace)
colorSpace
- the color space object to check.protected void processIndexedColorSpace(org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace colorSpace)
colorSpace
- the color space object to check.protected void processSeparationColorSpace(org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace colorSpace)
colorSpace
- the color space object to check.protected boolean processDefaultColorSpace(org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace colorSpace)
colorSpace
- Copyright © 2002–2025 The Apache Software Foundation. All rights reserved.