Flatten All Fields

Contents
[ ]

Use FormExamples.flattenAllFields(...) when you need to convert all interactive fields into static page content.

public static void flattenAllFields(Path inputFile, Path outputFile) {
    Form form = new Form();
    try {
        form.bindPdf(inputFile.toString());
        form.flattenAllFields();
        form.save(outputFile.toString());
    } finally {
        form.close();
    }
}