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 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 |
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()
protected void checkReferenceXObject()
protected void checkPostscriptXObject()
protected abstract void checkMandatoryFields()
public void validate() throws ValidationException
XObjectValidator
validate
in interface XObjectValidator
ValidationException
Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.