OptionalfilenameName of the downloaded file; '.pdf' is added when missing. Defaults to the document's file name.
OptionalflagsSave flags, such as SaveOptions.INCREMENTAL.
OptionalflattenBurns annotations, including form fields, into page content.
OptionalincludeWhen false, the downloaded file contains no annotations.
OptionalxfdfXFDF whose annotations replace the annotations in the downloaded file.
Options of UI.downloadPdf.