Set Field Alignment Vertical
Contents
[
Hide
]
Set vertical field alignment
- Bind the source PDF to the
FormEditorfacade. - Call
setFieldAlignmentV(...)for the target field and desired vertical alignment constant. - Save the updated document.
public static void setFieldAlignmentVertical(Path inputFile, Path outputFile) {
FormEditor editor = new FormEditor();
try {
editor.bindPdf(inputFile.toString());
editor.setFieldAlignmentV("First Name", FormFieldFacade.ALIGN_BOTTOM);
editor.save(outputFile.toString());
} finally {
editor.close();
}
}