| Modifier and Type | Field and Description |
|---|---|
| protected PreflightContext | context
The validation context which contains useful information to process validation. |
| protected COSStream | xobject
The XObject to validate as a COSStream. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract void | |
| protected void | checkOPI()
According the ISO 190005:1-2005 specification, a XObject can't have an OPI entry in its dictionary. |
| protected void | checkPostscriptXObject()
According the ISO 190005:1-2005 specification, PostScript XObjects are forbidden. |
| protected void | checkReferenceXObject()
According the ISO 190005:1-2005 specification, a XObject can't have an Ref entry in its dictionary. |
| protected void | |
| public void | validate()
Implements org. Process the validation of the XObject. |
| context | back to summary |
|---|---|
| protected PreflightContext context The validation context which contains useful information to process validation. | |
| xobject | back to summary |
|---|---|
| protected COSStream xobject The XObject to validate as a COSStream. | |
| AbstractXObjValidator | back to summary |
|---|---|
| public AbstractXObjValidator(PreflightContext context, COSStream xobj) | |
| checkMandatoryFields | back to summary |
|---|---|
| protected abstract void checkMandatoryFields() This method checks if required fields are present. | |
| checkOPI | back to summary |
|---|---|
| protected void checkOPI() According the ISO 190005:1-2005 specification, a XObject can't have an OPI entry in its dictionary. If the XObject has a OPI entry, the error list is updated with the error code ERROR_GRAPHIC_UNEXPECTED_KEY (2.3). | |
| checkPostscriptXObject | back to summary |
|---|---|
| protected void checkPostscriptXObject() According the ISO 190005:1-2005 specification, PostScript XObjects are forbidden. If the XObject is a PostScript XObject, the error list is updated with the error code ERROR_GRAPHIC_UNEXPECTED_VALUE_FOR_KEY (2.3.2). To know whether the object is a Postscript XObject, "Subtype" and "Subtype2" entries are checked. | |
| checkReferenceXObject | back to summary |
|---|---|
| protected void checkReferenceXObject() According the ISO 190005:1-2005 specification, a XObject can't have an Ref entry in its dictionary. If the XObject has a Ref entry, the error list is updated with the error code ERROR_GRAPHIC_UNEXPECTED_KEY (2.3). | |
| checkSMask | back to summary |
|---|---|
| protected void checkSMask() This method checks the SMask entry in the XObject dictionary. According to the PDF Reference, a SMask in a XObject is a Stream. So if it is not null, it should be an error but a SMask with the name None is authorized in the PDF/A Specification 6.4. If the validation fails (SMask not null and different from None), the error list is updated with the error code ERROR_GRAPHIC_TRANSPARENCY_SMASK (2.2.2). | |
| validate | back to summary |
|---|---|
| public void validate() throws ValidationException Implements org. Doc from org. Process the validation of the XObject.
| |