@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
31 lines • 1.29 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.JavaScriptActionExecuteJavaScript = void 0;
class JavaScriptActionExecuteJavaScript {
constructor(data) {
let jsActionDefault = "";
this.jsAction = typeof (data === null || data === void 0 ? void 0 : data.jsAction) !== "undefined" ? data === null || data === void 0 ? void 0 : data.jsAction : jsActionDefault;
}
static getJsActionDefault() {
return "";
}
static getJsActionDescription() {
return "A string that contains all the required JavaScript statements. References to libraries and external definitions will be valid as long as they are supported by the PDF standard and the reader application provides the corresponding interfaces.";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new JavaScriptActionExecuteJavaScript(data);
}
toJson() {
return {
'jsAction': this.jsAction,
};
}
clone() {
return JavaScriptActionExecuteJavaScript.fromJson(this.toJson());
}
}
exports.JavaScriptActionExecuteJavaScript = JavaScriptActionExecuteJavaScript;
//# sourceMappingURL=JavaScriptActionExecuteJavaScript.js.map