DS Server

Javascript: DocumentViewerElement.downloadDocument Method

Method|Introduced in 24.0

Description

Saves the current document and starts a browser download.

Syntax

<Promise.<void>> DocumentViewerElement.downloadDocument([<StreamType> streamType], [<boolean> mergeFormFields], [<boolean> embedAnnotations])

Parameters

ParameterDescription
streamType

Optional. Requested output format.

mergeFormFields

Optional. Whether current form values are merged into the document.

embedAnnotations

Optional. Whether viewer annotations are embedded into the document.

Return Value

Resolves after the browser download has been triggered.