UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

49 lines 2.08 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DescriptionCustom = void 0; class DescriptionCustom { constructor(data) { let keyDefault = ""; this.key = typeof (data === null || data === void 0 ? void 0 : data.key) !== "undefined" ? data === null || data === void 0 ? void 0 : data.key : keyDefault; let removeDefault = false; this.remove = typeof (data === null || data === void 0 ? void 0 : data.remove) !== "undefined" ? data === null || data === void 0 ? void 0 : data.remove : removeDefault; let valueDefault = ""; this.value = typeof (data === null || data === void 0 ? void 0 : data.value) !== "undefined" ? data === null || data === void 0 ? void 0 : data.value : valueDefault; } static getKeyDefault() { return ""; } static getKeyDescription() { return "Describes the name of the field to be added to the PDF description. The value must not be empty, must be unique, and must not conflict with the other (default) field names (e.g. \"Subject\"). If a name conflict occurs, the entry will be skipped and not entered."; } static getRemoveDefault() { return false; } static getRemoveDescription() { return "If \"true\", then the field is not added but removed. In this case \"value\" has no meaning. If the field is not present, then the entry is skipped."; } static getValueDefault() { return ""; } static getValueDescription() { return "Describes the value to be stored in the PDF description."; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new DescriptionCustom(data); } toJson() { return { 'key': this.key, 'remove': this.remove, 'value': this.value, }; } clone() { return DescriptionCustom.fromJson(this.toJson()); } } exports.DescriptionCustom = DescriptionCustom; //# sourceMappingURL=DescriptionCustom.js.map