Click or drag to resize

download Method

Download the document currently open in the PdfWebControl instance.

Syntax
JavaScript
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.

Unsaved changes made to the current document will be saved to the server prior to it being downloaded. You can use the getHasUnsavedChanges Method to determine if the current document has unsaved changes.

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