跳到主要内容

GetFileToDownload

Returns the current file to download in the specified format.

Syntax

expression.GetFileToDownload(format);

expression - A variable that represents a Api class.

Parameters

NameRequired/OptionalData typeDefaultDescription
formatOptionalstring" "A format in which you need to download a file.

Returns

string

Example

window.Asc.plugin.executeMethod ("GetFileToDownload", ["pdf"], function (res) {
console.log (res)
});