필드 정렬을 수직으로 설정
Contents
[
Hide
]
수직 필드 정렬 설정
- 소스 PDF를
FormEditor파사드에 바인딩하세요. - 대상 필드와 원하는 수직 정렬 상수에 대해
setFieldAlignmentV(...)를 호출하세요. - 업데이트된 문서를 저장하세요.
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();
}
}