Class ResourcesValidationProcess
java.lang.Object
org.apache.pdfbox.preflight.process.AbstractProcess
org.apache.pdfbox.preflight.process.reflect.ResourcesValidationProcess
- All Implemented Interfaces:
ValidationProcess
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvalidate(PreflightContext ctx) protected voidvalidateExtGStates(PreflightContext context, org.apache.pdfbox.pdmodel.PDResources resources) protected voidvalidateFonts(PreflightContext context, org.apache.pdfbox.pdmodel.PDResources resources) Check that fonts present in the Resources dictionary match with PDF/A-1 rulesprotected voidvalidateShadingPattern(PreflightContext context, org.apache.pdfbox.pdmodel.PDResources resources) This method check the Shading entry of the resource dictionary if exists.protected voidvalidateTilingPattern(PreflightContext context, org.apache.pdfbox.pdmodel.PDResources resources) This method check the Shading entry of the resource dictionary if exists.protected voidvalidateXObjects(PreflightContext context, org.apache.pdfbox.pdmodel.PDResources resources) Methods inherited from class org.apache.pdfbox.preflight.process.AbstractProcess
addFontError, addValidationError, addValidationErrors
-
Constructor Details
-
ResourcesValidationProcess
public ResourcesValidationProcess()
-
-
Method Details
-
validate
- Throws:
ValidationException
-
validateFonts
protected void validateFonts(PreflightContext context, org.apache.pdfbox.pdmodel.PDResources resources) throws ValidationException Check that fonts present in the Resources dictionary match with PDF/A-1 rules- Parameters:
context-resources-- Throws:
ValidationException
-
validateExtGStates
protected void validateExtGStates(PreflightContext context, org.apache.pdfbox.pdmodel.PDResources resources) throws ValidationException - Parameters:
context-resources-- Throws:
ValidationException
-
validateShadingPattern
protected void validateShadingPattern(PreflightContext context, org.apache.pdfbox.pdmodel.PDResources resources) throws ValidationException This method check the Shading entry of the resource dictionary if exists.- Parameters:
context-resources-- Throws:
ValidationException
-
validateTilingPattern
protected void validateTilingPattern(PreflightContext context, org.apache.pdfbox.pdmodel.PDResources resources) throws ValidationException This method check the Shading entry of the resource dictionary if exists.- Parameters:
context-resources-- Throws:
ValidationException
-
validateXObjects
protected void validateXObjects(PreflightContext context, org.apache.pdfbox.pdmodel.PDResources resources) throws ValidationException - Throws:
ValidationException
-