public class AcroFormValidationProcess extends AbstractProcess
| Constructor and Description |
|---|
AcroFormValidationProcess() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkNeedAppearences(PreflightContext ctx,
org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm acroForm)
This method checks if the NeedAppearances entry is present.
|
protected boolean |
exploreFields(PreflightContext ctx,
List<org.apache.pdfbox.pdmodel.interactive.form.PDField> fields)
This function explores all fields and their children to validate them.
|
protected boolean |
exploreWidgets(PreflightContext ctx,
List<org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationWidget> widgets)
This function explores all fields and their children to validate them.
|
void |
validate(PreflightContext ctx) |
protected boolean |
validateField(PreflightContext ctx,
org.apache.pdfbox.pdmodel.interactive.form.PDField field)
A and AA field are forbidden, this method checks if they are present and checks all children of this field.
|
addFontError, addValidationError, addValidationErrorspublic void validate(PreflightContext ctx) throws ValidationException
ValidationExceptionprotected void checkNeedAppearences(PreflightContext ctx, org.apache.pdfbox.pdmodel.interactive.form.PDAcroForm acroForm)
ctx - the preflight context.acroForm - the AcroForm.protected boolean exploreFields(PreflightContext ctx, List<org.apache.pdfbox.pdmodel.interactive.form.PDField> fields) throws IOException
ctx - the preflight context.fields - the list of fields, never null.IOExceptionvalidateField(PreflightContext, PDField)protected boolean exploreWidgets(PreflightContext ctx, List<org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationWidget> widgets) throws IOException
ctx - the preflight context.widgets - the list of widgetsIOExceptionvalidateField(PreflightContext, PDField)protected boolean validateField(PreflightContext ctx, org.apache.pdfbox.pdmodel.interactive.form.PDField field) throws IOException
ctx - the preflight context.field - an acro forms field.IOExceptionCopyright © 2002–2025 The Apache Software Foundation. All rights reserved.