확인란 필드 채우기
Contents
[
Hide
]
양식에 확인란 값을 설정하려면 FormExamples.fillCheckBoxFields(...)를 사용하세요.
public static void fillCheckBoxFields(Path inputFile, Path outputFile) {
Form form = new Form();
try {
form.bindPdf(inputFile.toString());
form.fillField("subscribe_newsletter", "Yes");
form.fillField("accept_terms", "Yes");
form.save(outputFile.toString());
} finally {
form.close();
}
}