Mengatur penampilan bidang
Contents
[
Hide
]
Mengatur flag penampilan bidang
- Ikat PDF sumber ke fasad
FormEditor. - Panggil
setFieldAppearance(...)untuk bidang target dan bendera anotasi yang dipilih. - Simpan dokumen yang diperbarui.
public static void setFieldAppearance(Path inputFile, Path outputFile) {
FormEditor editor = new FormEditor();
try {
editor.bindPdf(inputFile.toString());
editor.setFieldAppearance("First Name", AnnotationFlags.Hidden);
editor.save(outputFile.toString());
} finally {
editor.close();
}
}