Web SDKv1.0.0

export.flatten

Flatten on export: every page's fields and comments, as the page prints (anything not marked to print — a form field included — is dropped); the form itself is removed. By default a download keeps comments and form fields as they are: anyone can still select, edit, reply to or remove them in Acrobat or any other reader, as with Acrobat's own downloads. To hand out locked documents — signed forms, final contracts — turn flattening on for every download, or per call with exporter.download(name, { flatten: true }). In the Download dialog this is the one setting that cannot be undone — Lock in form answers and annotations — starting from flatten, and grayed out on a signed document with the reason, since the signature would not survive.
booleandefault false

Example

flattenTypeScript
export: { flatten: true } // every Download locks answers and comments into the page

More in Export