필드 제한 설정

필드 글자 수 제한 설정

  1. 소스 PDF를 FormEditor 파사드에 바인딩하세요.
  2. 대상 필드 및 최대 문자 수를 확인하려면 setFieldLimit(...)를 호출하세요.
  3. 업데이트된 문서를 저장하세요.
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();
    }
}