Class XObjFormValidator
java.lang.Object
org.apache.pdfbox.preflight.xobject.AbstractXObjValidator
org.apache.pdfbox.preflight.xobject.XObjFormValidator
- All Implemented Interfaces:
XObjectValidator
This class validates XObject with the Form subtype.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) PDFormXObjectHigh level object which represents the XObjectFormFields inherited from class org.apache.pdfbox.preflight.xobject.AbstractXObjValidator
context, cosDocument, xobject -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidA Form XObject may contain a Group object (Key =" Group").protected voidThis method checks if required fields are present.protected voidcheckPS()Check if there are no PS entry in the Form XObject dictionaryprotected voidCheck the SUbtype2 entry according to the §6.2.5 of the ISO 190005-1:2005 specification.voidvalidate()Process the validation of the XObject.protected voidAn Form XObject is a ContentStream.protected voidMethods inherited from class org.apache.pdfbox.preflight.xobject.AbstractXObjValidator
checkOPI, checkPostscriptXObject, checkReferenceXObject, checkSMask
-
Field Details
-
pdXObj
PDFormXObject pdXObjHigh level object which represents the XObjectForm
-
-
Constructor Details
-
XObjFormValidator
-
-
Method Details
-
validate
Description copied from interface:XObjectValidatorProcess the validation of the XObject.- Specified by:
validatein interfaceXObjectValidator- Overrides:
validatein classAbstractXObjValidator- Throws:
ValidationException
-
checkMandatoryFields
protected void checkMandatoryFields()Description copied from class:AbstractXObjValidatorThis method checks if required fields are present.- Specified by:
checkMandatoryFieldsin classAbstractXObjValidator
-
validateXObjectContent
An Form XObject is a ContentStream. This method method uses an instance of ContentStreamWrapper to check the Stream of this Form XObject.- Throws:
ValidationException
-
checkGroup
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". -
checkPS
protected void checkPS()Check if there are no PS entry in the Form XObject dictionary -
checkSubtype2Value
protected void checkSubtype2Value()Check the SUbtype2 entry according to the §6.2.5 of the ISO 190005-1:2005 specification. -
validateXObjectResources
- Throws:
ValidationException
-