public class AcroFormValidationProcess extends AbstractProcess
| Constructor and Description |
|---|
AcroFormValidationProcess() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkNeedAppearences(PreflightContext ctx,
PDAcroForm acroForm)
This method checks if the NeedAppearances entry is present.
|
protected boolean |
exploreFields(PreflightContext ctx,
List<?> lFields)
This function explores all fields and their children to validate them.
|
void |
validate(PreflightContext ctx) |
protected boolean |
valideField(PreflightContext ctx,
PDField aField)
A and AA field are forbidden, this method checks if they are present and checks all child of this field.
|
addValidationError, addValidationErrorspublic void validate(PreflightContext ctx) throws ValidationException
ValidationExceptionprotected void checkNeedAppearences(PreflightContext ctx, PDAcroForm acroForm)
ctx - acroForm - result - protected boolean exploreFields(PreflightContext ctx, List<?> lFields) throws IOException
ctx - acroForm - result - IOExceptionprotected boolean valideField(PreflightContext ctx, PDField aField) throws IOException
ctx - aField - IOExceptionCopyright © 2002–2019 The Apache Software Foundation. All rights reserved.