public class ShadingPatternValidationProcess extends AbstractProcess
Constructor and Description |
---|
ShadingPatternValidationProcess() |
Modifier and Type | Method and Description |
---|---|
protected void |
checkColorSpace(PreflightContext context,
PDPage page,
PDShading shadingRes)
Checks if the ColorSapce entry is consistent which rules of the PDF Reference and the ISO 190005-1:2005
Specification.
|
protected void |
checkGraphicState(PreflightContext context,
PDPage page,
PDShading shadingRes)
Check the Extended Graphic State contains in the ShadingPattern dictionary if it is present.
|
void |
validate(PreflightContext context) |
addFontError, addValidationError, addValidationErrors
public void validate(PreflightContext context) throws ValidationException
ValidationException
protected void checkColorSpace(PreflightContext context, PDPage page, PDShading shadingRes) throws ValidationException
context
- the preflight context.page
- the page to check.shadingRes
- the Shading pattern to check.ValidationException
protected void checkGraphicState(PreflightContext context, PDPage page, PDShading shadingRes) throws ValidationException
context
- the preflight context.page
- the page to check.shadingRes
- the Shading pattern to check.ValidationException
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.