Get Started
Plugins
Macros
More information

window.Asc.plugin.executeMethod ("GetFileToDownload", [args], callback)

Description

Defines the method that allows returning the current file to download it in the specified format.

Usage

This method should be used in the following way:

window.Asc.plugin.executeMethod ("GetFileToDownload", [format]);
Parameters
Parameter Description Type Example
format A format in which you need to download a file. The default value is "". string "pdf"
Returns

The method returns the URL in the string format to download a file in the specified format or an error.

Example
window.Asc.plugin.executeMethod ("GetFileToDownload", ["pdf"]);