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<PDField> fields)
This function explores all fields and their children to validate them.
|
protected boolean |
exploreWidgets(PreflightContext ctx,
List<PDAnnotationWidget> widgets)
This function explores all fields and their children to validate them.
|
void |
validate(PreflightContext ctx) |
protected boolean |
validateField(PreflightContext ctx,
PDField field)
A and AA field are forbidden, this method checks if they are present and checks all children of this field.
|
addFontError, addValidationError, addValidationErrors
public void validate(PreflightContext ctx) throws ValidationException
ValidationException
protected void checkNeedAppearences(PreflightContext ctx, PDAcroForm acroForm)
ctx
- the preflight context.acroForm
- the AcroForm.protected boolean exploreFields(PreflightContext ctx, List<PDField> fields) throws IOException
ctx
- the preflight context.fields
- the list of fields, can be null (this will no longer be allowed in 3.0, and it
isn't null currently unless methods are extended).IOException
validateField(PreflightContext, PDField)
protected boolean exploreWidgets(PreflightContext ctx, List<PDAnnotationWidget> widgets) throws IOException
ctx
- the preflight context.widgets
- the list of widgetsIOException
validateField(PreflightContext, PDField)
protected boolean validateField(PreflightContext ctx, PDField field) throws IOException
ctx
- the preflight context.field
- an acro forms field.IOException
Copyright © 2002–2023 The Apache Software Foundation. All rights reserved.