Set Field Alignment Vertical

Set vertical field alignment

  1. Bind the source PDF to the FormEditor facade.
  2. Call setFieldAlignmentV(...) for the target field and desired vertical alignment constant.
  3. 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();
    }
}