Export to FDF
Contents
[
Hide
]
Use FormExamples.exportFdf(...) when you need to serialize AcroForm field data as FDF.
public static void exportFdf(Path inputFile, Path outputFile) throws Exception {
Form form = new Form();
try (OutputStream outputStream = Files.newOutputStream(outputFile)) {
form.bindPdf(inputFile.toString());
form.exportFdf(outputStream);
} finally {
form.close();
}
}