Class SinglePageValidationProcess
java.lang.Object
org.apache.pdfbox.preflight.process.AbstractProcess
org.apache.pdfbox.preflight.process.reflect.SinglePageValidationProcess
- All Implemented Interfaces:
ValidationProcess
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
validate
(PreflightContext context) protected void
validateActions
(PreflightContext context, PDPage page) This method checks additional actions contained in the given Page object.protected void
validateAnnotation
(PreflightContext context, PDPage page) 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.protected void
validateContent
(PreflightContext context, PDPage page) protected void
validateGraphicObjects
(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 void
validateGroupTransparency
(PreflightContext context, PDPage page) Check that the group dictionary doesn't have a Transparency attributeprotected void
validateResources
(PreflightContext context, PDPage page) Methods inherited from class org.apache.pdfbox.preflight.process.AbstractProcess
addFontError, addValidationError, addValidationErrors
-
Constructor Details
-
SinglePageValidationProcess
public SinglePageValidationProcess()
-
-
Method Details
-
validate
- Throws:
ValidationException
-
validateActions
This method checks additional actions contained in the given Page object.- Parameters:
context
- the preflight context.page
- the page to check.- Throws:
ValidationException
-
validateColorSpaces
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
- Throws:
ValidationException
-
validateContent
- Parameters:
context
- the preflight context.page
- the page to check.- Throws:
ValidationException
-
validateAnnotation
- 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
-