Set Field Limit
Contents
[
Hide
]
Set a field character limit
- Bind the source PDF to the
FormEditorfacade. - Call
setFieldLimit(...)for the target field and maximum character count. - Save the updated document.
public static void setFieldLimit(Path inputFile, Path outputFile) {
FormEditor editor = new FormEditor();
try {
editor.bindPdf(inputFile.toString());
editor.setFieldLimit("First Name", 15);
editor.save(outputFile.toString());
} finally {
editor.close();
}
}