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, addValidationErrors
public void validate(PreflightContext ctx) throws ValidationException
ValidationException
protected void checkNeedAppearences(PreflightContext ctx, PDAcroForm acroForm)
ctx
- acroForm
- result
- protected boolean exploreFields(PreflightContext ctx, List<?> lFields) throws IOException
ctx
- acroForm
- result
- IOException
protected boolean valideField(PreflightContext ctx, PDField aField) throws IOException
ctx
- aField
- IOException
Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.