public abstract class AbstractXObjValidator extends Object implements XObjectValidator
| Modifier and Type | Field and Description |
|---|---|
protected PreflightContext |
context
The validation context which contains useful information to process validation.
|
protected COSDocument |
cosDocument
The PDF document as COSDocument.
|
protected COSStream |
xobject
The XObject to validate as a COSStream.
|
| Constructor and Description |
|---|
AbstractXObjValidator(PreflightContext context,
COSStream xobj) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
checkMandatoryFields()
This method checks if required fields are present.
|
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 XObject 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 |
checkSMask()
This method checks the SMask entry in the XObject dictionary.
|
void |
validate()
Process the validation of the XObject.
|
protected COSStream xobject
protected PreflightContext context
protected COSDocument cosDocument
public AbstractXObjValidator(PreflightContext context, COSStream xobj)
protected void checkSMask()
protected void checkOPI()
errors - the list of error to update if the validation fails.protected void checkReferenceXObject()
protected void checkPostscriptXObject()
protected abstract void checkMandatoryFields()
public void validate()
throws ValidationException
XObjectValidatorvalidate in interface XObjectValidatorValidationExceptionCopyright © 2002–2019 The Apache Software Foundation. All rights reserved.