UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

31 lines 1.91 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SignatureSettings = void 0; class SignatureSettings { constructor(data) { let signatureEditProfileDefault = "adobeRestrictions"; this.signatureEditProfile = typeof (data === null || data === void 0 ? void 0 : data.signatureEditProfile) !== "undefined" ? data === null || data === void 0 ? void 0 : data.signatureEditProfile : signatureEditProfileDefault; } static getSignatureEditProfileDefault() { return "adobeRestrictions"; } static getSignatureEditProfileDescription() { return "Defines the profile whose rules web services have to check before they can come to execution. These profiles define a set of rules concerning the validity of signatures. A web service whose execution for a given signed document would violate the ruleset selected here should instead abort with an appropriate error code.\n\n* adobeRestrictions = Only those changes are allowed that are enabled by the included signatures. This follows the specifications given by Adobe.\n* generalEditRestrictions = All changes to signed documents are prohibited, even those that might be allowed according to the included signatures.\n* noEditRestrictions = Editing of signed documents is not restricted and all changes are allowed (by doing this, you accept that all signatures could potentially be removed from the document when necessary)."; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new SignatureSettings(data); } toJson() { return { 'signatureEditProfile': this.signatureEditProfile, }; } clone() { return SignatureSettings.fromJson(this.toJson()); } } exports.SignatureSettings = SignatureSettings; //# sourceMappingURL=SignatureSettings.js.map