| Modifier and Type | Field and Description |
|---|---|
| private PDDocumentCatalog | |
| private static final List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| public void | |
| private void | validateActions(PreflightContext ctx)
This method validates if OpenAction entry contains forbidden action type. |
| private void | validateICCProfile(COSBase destOutputProfile, Map<COSObjectKey, Boolean> mapDestOutputProfile, PreflightContext
the preflight context. ctx)This method checks the destOutputProfile which must be a valid ICCProfile. |
| private void | |
| private void | |
| private void | validateOCProperties(PreflightContext ctx)
A Catalog shall not contain the OCPProperties (Optional Content Properties) entry. |
| private void |
| catalog | back to summary |
|---|---|
| private PDDocumentCatalog catalog | |
| listICC | back to summary |
|---|---|
| private static final List<String> listICC | |
| CatalogValidationProcess | back to summary |
|---|---|
| public CatalogValidationProcess() | |
| isStandardICCCharacterization | back to summary |
|---|---|
| private boolean isStandardICCCharacterization(String name) | |
| validate | back to summary |
|---|---|
| public void validate(PreflightContext ctx) throws ValidationException Implements org.
| |
| validateActions | back to summary |
|---|---|
| private void validateActions(PreflightContext ctx) throws ValidationException This method validates if OpenAction entry contains forbidden action type. It checks too if an Additional Action is present.
| |
| validateICCProfile | back to summary |
|---|---|
| private void validateICCProfile(COSBase destOutputProfile, Map<COSObjectKey, Boolean> mapDestOutputProfile, PreflightContext ctx) throws ValidationException This method checks the destOutputProfile which must be a valid ICCProfile. If another ICCProfile exists in the mapDestOutputProfile, a ValidationError (ERROR_GRAPHIC_OUTPUT_INTENT_ICC_PROFILE_MULTIPLE) is returned because only one profile is authorized. If the ICCProfile already exists in the mapDestOutputProfile, the method returns null. If the destOutputProfile contains an invalid ICCProfile, a ValidationError (ERROR_GRAPHIC_OUTPUT_INTENT_ICC_PROFILE_INVALID) is returned. If the destOutputProfile is an empty stream, a ValidationError(ERROR_GRAPHIC_OUTPUT_INTENT_INVALID_ENTRY) is returned. If the destOutputFile is valid, mapDestOutputProfile is updated, the ICCProfile is added to the document ctx and null is returned.
| |
| validateLang | back to summary |
|---|---|
| private void validateLang(PreflightContext ctx) The Lang element is optional but it is recommended. This method check the Syntax of the Lang if this entry is present. | |
| validateNames | back to summary |
|---|---|
| private void validateNames(PreflightContext ctx) A Catalog shall not contain the EmbeddedFiles entry. | |
| validateOCProperties | back to summary |
|---|---|
| private void validateOCProperties(PreflightContext ctx) A Catalog shall not contain the OCPProperties (Optional Content Properties) entry. | |
| validateOutputIntent | back to summary |
|---|---|
| private void validateOutputIntent(PreflightContext ctx) throws ValidationException This method checks the content of each OutputIntent. The S entry must contain GTS_PDFA1. The DestOutputProfile must contain a valid ICC Profile Stream. If there are more than one OutputIntent, they have to use the same ICC Profile. This method returns a list of ValidationError. It is empty if no errors have been found. | |