public class CatalogValidationProcess extends AbstractProcess
Modifier and Type | Field and Description |
---|---|
protected PDDocumentCatalog |
catalog |
protected List<String> |
listICC |
Constructor and Description |
---|
CatalogValidationProcess() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isStandardICCCharacterization(String name) |
void |
validate(PreflightContext ctx) |
protected void |
validateActions(PreflightContext ctx)
This method validates if OpenAction entry contains forbidden action type.
|
protected void |
validateICCProfile(COSBase destOutputProfile,
Map<COSObjectKey,Boolean> mapDestOutputProfile,
PreflightContext ctx)
This method checks the destOutputProfile which must be a valid ICCProfile.
|
protected void |
validateLang(PreflightContext ctx)
The Lang element is optional but it is recommended.
|
protected void |
validateNames(PreflightContext ctx)
A Catalog shall not contain the EmbeddedFiles entry.
|
protected void |
validateOCProperties(PreflightContext ctx)
A Catalog shall not contain the OCPProperties (Optional Content Properties) entry.
|
void |
validateOutputIntent(PreflightContext ctx)
This method checks the content of each OutputIntent.
|
addFontError, addValidationError, addValidationErrors
protected PDDocumentCatalog catalog
protected boolean isStandardICCCharacterization(String name)
public void validate(PreflightContext ctx) throws ValidationException
ValidationException
protected void validateActions(PreflightContext ctx) throws ValidationException
ctx
- ValidationException
- Propagate the ActionManager exceptionprotected void validateLang(PreflightContext ctx) throws ValidationException
ctx
- ValidationException
protected void validateNames(PreflightContext ctx) throws ValidationException
ctx
- ValidationException
protected void validateOCProperties(PreflightContext ctx) throws ValidationException
ctx
- ValidationException
public void validateOutputIntent(PreflightContext ctx) throws ValidationException
ctx
- ValidationException
protected void validateICCProfile(COSBase destOutputProfile, Map<COSObjectKey,Boolean> mapDestOutputProfile, PreflightContext ctx) throws ValidationException
destOutputProfile
- mapDestOutputProfile
- ctx
- the preflight context.ValidationException
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.