Top Description Fields Constructors Methods
org.apache.pdfbox.preflight.xobject

public Class XObjFormValidator

extends AbstractXObjValidator
Class Inheritance
Static Imports
org.apache.pdfbox.preflight.PreflightConfiguration.RESOURCES_PROCESS, .PreflightConstants.ERROR_GRAPHIC_INVALID_BBOX, .PreflightConstants.ERROR_GRAPHIC_MISSING_FIELD, .PreflightConstants.ERROR_GRAPHIC_TRANSPARENCY_GROUP, .PreflightConstants.ERROR_GRAPHIC_UNEXPECTED_KEY, .PreflightConstants.ERROR_GRAPHIC_UNEXPECTED_VALUE_FOR_KEY

This class validates XObject with the Form subtype.

Field Summary

Modifier and TypeField and Description
pack-priv PDFormXObject
pdXObj

High level object which represents the XObjectForm

Inherited from org.apache.pdfbox.preflight.xobject.AbstractXObjValidator:
contextxobject

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
checkGroup()

A Form XObject may contain a Group object (Key =" Group").

protected void
checkMandatoryFields()

Implements abstract org.apache.pdfbox.preflight.xobject.AbstractXObjValidator.checkMandatoryFields.

This method checks if required fields are present.

protected void
checkPS()

Check if there are no PS entry in the Form XObject dictionary

protected void
checkSubtype2Value()

Check the SUbtype2 entry according to the §6.2.5 of the ISO 190005-1:2005 specification.

public void
protected void
validateXObjectContent()

An Form XObject is a ContentStream.

protected void
Inherited from org.apache.pdfbox.preflight.xobject.AbstractXObjValidator:
checkOPIcheckPostscriptXObjectcheckReferenceXObjectcheckSMask

Field Detail

pdXObjback to summary
pack-priv PDFormXObject pdXObj

High level object which represents the XObjectForm

Constructor Detail

XObjFormValidatorback to summary
public XObjFormValidator(PreflightContext context, PDFormXObject xobj)

Method Detail

checkGroupback to summary
protected void checkGroup()

A Form XObject may contain a Group object (Key =" Group"). If a Group object is present, this method checks if the S entry is present and if its value is different from "Transparency".

checkMandatoryFieldsback to summary
protected void checkMandatoryFields()

Implements abstract org.apache.pdfbox.preflight.xobject.AbstractXObjValidator.checkMandatoryFields.

Doc from org.apache.pdfbox.preflight.xobject.AbstractXObjValidator.checkMandatoryFields.

This method checks if required fields are present.

Annotations
@Override
checkPSback to summary
protected void checkPS()

Check if there are no PS entry in the Form XObject dictionary

checkSubtype2Valueback to summary
protected void checkSubtype2Value()

Check the SUbtype2 entry according to the §6.2.5 of the ISO 190005-1:2005 specification.

validateback to summary
public void validate() throws ValidationException

Overrides org.apache.pdfbox.preflight.xobject.AbstractXObjValidator.validate.

Implements org.apache.pdfbox.preflight.xobject.XObjectValidator.validate.

Doc from org.apache.pdfbox.preflight.xobject.XObjectValidator.validate.

Process the validation of the XObject.

Annotations
@Override
validateXObjectContentback to summary
protected void validateXObjectContent() throws ValidationException

An Form XObject is a ContentStream. This method method uses an instance of ContentStreamWrapper to check the Stream of this Form XObject.

validateXObjectResourcesback to summary
protected void validateXObjectResources() throws ValidationException