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

public Class ResourcesValidationProcess

extends AbstractProcess
Class Inheritance
Imports
java.io.IOException, java.util.HashMap, .Map, .Map.Entry, org.apache.pdfbox.cos.COSBase, .COSDictionary, .COSName, .COSObject, .COSStream, org.apache.pdfbox.pdmodel.PDResources, org.apache.pdfbox.pdmodel.font.PDFont, .PDFontFactory, org.apache.pdfbox.pdmodel.graphics.PDXObject, org.apache.pdfbox.pdmodel.graphics.pattern.PDAbstractPattern, .PDTilingPattern, org.apache.pdfbox.pdmodel.graphics.shading.PDShading, org.apache.pdfbox.preflight.PreflightConstants, .PreflightContext, .PreflightPath, .ValidationResult.ValidationError, org.apache.pdfbox.preflight.exception.ValidationException, org.apache.pdfbox.preflight.process.AbstractProcess, org.apache.pdfbox.preflight.utils.ContextHelper

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private Map<String, PDFont>

Returns:

The map of fonts.
getFonts
(COSDictionary resources, PreflightContext context)

This will get the map of fonts.

public void
protected void
protected void
validateFonts(PreflightContext context, PDResources resources)

Check that fonts present in the Resources dictionary match with PDF/A-1 rules

protected 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
Inherited from org.apache.pdfbox.preflight.process.AbstractProcess:
addFontErroraddValidationErroraddValidationErrors

Constructor Detail

ResourcesValidationProcessback to summary
public ResourcesValidationProcess()

Method Detail

getFontsback to summary
private Map<String, PDFont> getFonts(COSDictionary resources, PreflightContext context)

This will get the map of fonts. This will never return null.

Returns:Map<String, PDFont>

The map of fonts.

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

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

Annotations
@Override
validateExtGStatesback to summary
protected void validateExtGStates(PreflightContext context, PDResources resources) throws ValidationException
validateFontsback to summary
protected void validateFonts(PreflightContext context, PDResources resources) throws ValidationException

Check that fonts present in the Resources dictionary match with PDF/A-1 rules

validateShadingPatternback to summary
protected void validateShadingPattern(PreflightContext context, PDResources resources) throws ValidationException

This method check the Shading entry of the resource dictionary if exists.

validateTilingPatternback to summary
protected void validateTilingPattern(PreflightContext context, PDResources resources) throws ValidationException

This method check the Shading entry of the resource dictionary if exists.

validateXObjectsback to summary
protected void validateXObjects(PreflightContext context, PDResources resources) throws ValidationException