Top Fields Constructors Methods
org.apache.pdfbox.preflight.process.reflect

public Class ShadingPatternValidationProcess

extends AbstractProcess
Class Inheritance
Imports
java.io.IOException, org.apache.commons.logging.Log, .LogFactory, org.apache.pdfbox.cos.COSDictionary, .COSName, org.apache.pdfbox.pdmodel.PDPage, org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace, org.apache.pdfbox.pdmodel.graphics.shading.PDShading, org.apache.pdfbox.preflight.PreflightConfiguration, .PreflightConstants, .PreflightContext, .PreflightPath, .ValidationResult.ValidationError, org.apache.pdfbox.preflight.exception.ValidationException, org.apache.pdfbox.preflight.graphic.ColorSpaceHelper, .ColorSpaceHelperFactory, .ColorSpaceHelperFactory.ColorSpaceRestriction, org.apache.pdfbox.preflight.process.AbstractProcess, org.apache.pdfbox.preflight.utils.ContextHelper

Field Summary

Modifier and TypeField and Description
private static final Log

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
checkColorSpace(PreflightContext
the preflight context.
context
,
PDPage
the page to check.
page
,
PDShading
the Shading pattern to check.
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
the preflight context.
context
,
PDPage
the page to check.
page
,
PDShading
the Shading pattern to check.
shadingRes
)

Check the Extended Graphic State contains in the ShadingPattern dictionary if it is present.

public void
Inherited from org.apache.pdfbox.preflight.process.AbstractProcess:
addFontErroraddValidationErroraddValidationErrors

Field Detail

LOGGERback to summary
private static final Log LOGGER

Constructor Detail

ShadingPatternValidationProcessback to summary
public ShadingPatternValidationProcess()

Method Detail

checkColorSpaceback to summary
protected void checkColorSpace(PreflightContext context, PDPage page, PDShading shadingRes) throws ValidationException

Checks if the ColorSapce entry is consistent which rules of the PDF Reference and the ISO 190005-1:2005 Specification. This method is called by the validate method.

Parameters
context:PreflightContext

the preflight context.

page:PDPage

the page to check.

shadingRes:PDShading

the Shading pattern to check.

checkGraphicStateback to summary
protected void checkGraphicState(PreflightContext context, PDPage page, PDShading shadingRes) throws ValidationException

Check the Extended Graphic State contains in the ShadingPattern dictionary if it is present. To check this ExtGState, this method uses the org.apache.pdfbox.preflight.graphic.ExtGStateContainer object.

Parameters
context:PreflightContext

the preflight context.

page:PDPage

the page to check.

shadingRes:PDShading

the Shading pattern to check.

validateback to summary
public void validate(PreflightContext context) throws ValidationException

Implements org.apache.pdfbox.preflight.process.ValidationProcess.validate.

Annotations
@Override