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 TypeMethodDescriptiongetFonts
(COSDictionary resources, PreflightContext context) This will get the map of fonts.void
validate
(PreflightContext ctx) protected void
validateExtGStates
(PreflightContext context, PDResources resources) protected void
validateFonts
(PreflightContext context, PDResources resources) Check that fonts present in the Resources dictionary match with PDF/A-1 rulesprotected void
validateShadingPattern
(PreflightContext context, PDResources resources) This method check the Shading entry of the resource dictionary if exists.protected void
validateTilingPattern
(PreflightContext context, PDResources resources) This method check the Shading entry of the resource dictionary if exists.protected void
validateXObjects
(PreflightContext context, 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, PDResources resources) throws ValidationException Check that fonts present in the Resources dictionary match with PDF/A-1 rules- Parameters:
context
-resources
-- Throws:
ValidationException
-
getFonts
This will get the map of fonts. This will never return null.- Returns:
- The map of fonts.
-
validateExtGStates
protected void validateExtGStates(PreflightContext context, PDResources resources) throws ValidationException - Parameters:
context
-resources
-- Throws:
ValidationException
-
validateShadingPattern
protected void validateShadingPattern(PreflightContext context, 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, 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, PDResources resources) throws ValidationException - Throws:
ValidationException
-