텍스트 필드 채우기
Contents
[
Hide
]
FormExamples.fillTextFields(...)를 사용하여 텍스트 기반 양식 필드를 채웁니다.
public static void fillTextFields(Path inputFile, Path outputFile) {
Form form = new Form();
try {
form.bindPdf(inputFile.toString());
form.fillField("name", "John Doe");
form.fillField("address", "123 Main St, Anytown, USA");
form.fillField("email", "john.doe@example.com");
form.save(outputFile.toString());
} finally {
form.close();
}
}