Class SinglePageValidationProcess
- java.lang.Object
-
- org.apache.pdfbox.preflight.process.AbstractProcess
-
- org.apache.pdfbox.preflight.process.reflect.SinglePageValidationProcess
-
- All Implemented Interfaces:
ValidationProcess
public class SinglePageValidationProcess extends AbstractProcess
-
-
Field Summary
Fields Modifier and Type Field Description private static org.apache.commons.logging.LogLOGGER
-
Constructor Summary
Constructors Constructor Description SinglePageValidationProcess()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidate(PreflightContext context)protected voidvalidateActions(PreflightContext context, PDPage page)This method checks additional actions contained in the given Page object.protected voidvalidateAnnotation(PreflightContext context, PDPage page)protected voidvalidateColorSpaces(PreflightContext context, PDPage page)Check that all ColorSpace present in the Resource dictionary are conforming to the ISO 19005:2005-1 specification.protected voidvalidateContent(PreflightContext context, PDPage page)protected voidvalidateGraphicObjects(PreflightContext context, PDPage page)Check that all XObject references in the PDResource of the page and in the Thumb entry are confirming to the PDF/A specification.protected voidvalidateGroupTransparency(PreflightContext context, PDPage page)Check that the group dictionary doesn't have a Transparency attributeprotected voidvalidateResources(PreflightContext context, PDPage page)-
Methods inherited from class org.apache.pdfbox.preflight.process.AbstractProcess
addFontError, addValidationError, addValidationErrors
-
-
-
-
Method Detail
-
validate
public void validate(PreflightContext context) throws ValidationException
- Throws:
ValidationException
-
validateActions
protected void validateActions(PreflightContext context, PDPage page) throws ValidationException
This method checks additional actions contained in the given Page object.- Parameters:
context- the preflight context.page- the page to check.- Throws:
ValidationException
-
validateColorSpaces
protected void validateColorSpaces(PreflightContext context, PDPage page)
Check that all ColorSpace present in the Resource dictionary are conforming to the ISO 19005:2005-1 specification.- Parameters:
context- the preflight context.page- the page to check.
-
validateGraphicObjects
protected void validateGraphicObjects(PreflightContext context, PDPage page) throws ValidationException
Check that all XObject references in the PDResource of the page and in the Thumb entry are confirming to the PDF/A specification.- Parameters:
context- the preflight context.page- the page to check.- Throws:
ValidationException
-
validateResources
protected void validateResources(PreflightContext context, PDPage page) throws ValidationException
- Throws:
ValidationException
-
validateContent
protected void validateContent(PreflightContext context, PDPage page) throws ValidationException
- Parameters:
context- the preflight context.page- the page to check.- Throws:
ValidationException
-
validateAnnotation
protected void validateAnnotation(PreflightContext context, PDPage page) throws ValidationException
- Parameters:
context- the preflight context.page- the page to check.- Throws:
ValidationException
-
validateGroupTransparency
protected void validateGroupTransparency(PreflightContext context, PDPage page) throws ValidationException
Check that the group dictionary doesn't have a Transparency attribute- Parameters:
context- the preflight context.page- the page to check.- Throws:
ValidationException
-
-