Download the document currently open in the PdfWebControl instance.

Syntax

CopyJavaScript
function download();

Parameters

None

Return Value

Type: Boolean

true if download initiated successfully; otherwise, false.

Remarks

This method will start the download process asynchronously, however it does not wait for the download to complete.

Examples

CopyJavaScript
var myApi = new PdfWebControlApi("PdfWebControl1"); // where "PdfWebControl1" is the ID (ClientID) assigned to the PdfWebControl instance
myApi.download();

See Also