@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
31 lines • 1.73 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PdfaSettings = void 0;
class PdfaSettings {
constructor(data) {
let pdfaEditProfileDefault = "removePdfaMetadata";
this.pdfaEditProfile = typeof (data === null || data === void 0 ? void 0 : data.pdfaEditProfile) !== "undefined" ? data === null || data === void 0 ? void 0 : data.pdfaEditProfile : pdfaEditProfileDefault;
}
static getPdfaEditProfileDefault() {
return "removePdfaMetadata";
}
static getPdfaEditProfileDescription() {
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 PDF\/A documents. A web service whose execution for a given PDF\/A document would violate the rule set selected here should instead abort with an appropriate error code.\n\n* generalEditRestrictions = All changes to PDF\/A documents are prohibited.\n* removePdfaMetadata = All changes to PDF\/A documents are allowed, but the PDF\/A state of the document is revoked. (By removing the PDF\/A metadata.)\n* noEditRestrictions = All changes to PDF\/A documents are allowed, without touching the PDF\/A state of the document. (Risking the invalidation of the document.)";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new PdfaSettings(data);
}
toJson() {
return {
'pdfaEditProfile': this.pdfaEditProfile,
};
}
clone() {
return PdfaSettings.fromJson(this.toJson());
}
}
exports.PdfaSettings = PdfaSettings;
//# sourceMappingURL=PdfaSettings.js.map