@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
355 lines • 18.5 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Functions = void 0;
class Functions {
constructor(data) {
let addWatermarkDefault = true;
this.addWatermark = typeof (data === null || data === void 0 ? void 0 : data.addWatermark) !== "undefined" ? data === null || data === void 0 ? void 0 : data.addWatermark : addWatermarkDefault;
let changeDocumentSettingsDefault = true;
this.changeDocumentSettings = typeof (data === null || data === void 0 ? void 0 : data.changeDocumentSettings) !== "undefined" ? data === null || data === void 0 ? void 0 : data.changeDocumentSettings : changeDocumentSettingsDefault;
let changeDocumentViewDefault = true;
this.changeDocumentView = typeof (data === null || data === void 0 ? void 0 : data.changeDocumentView) !== "undefined" ? data === null || data === void 0 ? void 0 : data.changeDocumentView : changeDocumentViewDefault;
let compressDefault = true;
this.compress = typeof (data === null || data === void 0 ? void 0 : data.compress) !== "undefined" ? data === null || data === void 0 ? void 0 : data.compress : compressDefault;
let convertDocumentDefault = true;
this.convertDocument = typeof (data === null || data === void 0 ? void 0 : data.convertDocument) !== "undefined" ? data === null || data === void 0 ? void 0 : data.convertDocument : convertDocumentDefault;
let createBarcodeDefault = true;
this.createBarcode = typeof (data === null || data === void 0 ? void 0 : data.createBarcode) !== "undefined" ? data === null || data === void 0 ? void 0 : data.createBarcode : createBarcodeDefault;
let deletePagesDefault = true;
this.deletePages = typeof (data === null || data === void 0 ? void 0 : data.deletePages) !== "undefined" ? data === null || data === void 0 ? void 0 : data.deletePages : deletePagesDefault;
let detectBarcodeDefault = true;
this.detectBarcode = typeof (data === null || data === void 0 ? void 0 : data.detectBarcode) !== "undefined" ? data === null || data === void 0 ? void 0 : data.detectBarcode : detectBarcodeDefault;
let editAnnotationDefault = true;
this.editAnnotation = typeof (data === null || data === void 0 ? void 0 : data.editAnnotation) !== "undefined" ? data === null || data === void 0 ? void 0 : data.editAnnotation : editAnnotationDefault;
let editAttachmentDefault = true;
this.editAttachment = typeof (data === null || data === void 0 ? void 0 : data.editAttachment) !== "undefined" ? data === null || data === void 0 ? void 0 : data.editAttachment : editAttachmentDefault;
let editBackgroundDefault = true;
this.editBackground = typeof (data === null || data === void 0 ? void 0 : data.editBackground) !== "undefined" ? data === null || data === void 0 ? void 0 : data.editBackground : editBackgroundDefault;
let editBoxesDefault = true;
this.editBoxes = typeof (data === null || data === void 0 ? void 0 : data.editBoxes) !== "undefined" ? data === null || data === void 0 ? void 0 : data.editBoxes : editBoxesDefault;
let editFormsDefault = true;
this.editForms = typeof (data === null || data === void 0 ? void 0 : data.editForms) !== "undefined" ? data === null || data === void 0 ? void 0 : data.editForms : editFormsDefault;
let editHeaderFooterDefault = true;
this.editHeaderFooter = typeof (data === null || data === void 0 ? void 0 : data.editHeaderFooter) !== "undefined" ? data === null || data === void 0 ? void 0 : data.editHeaderFooter : editHeaderFooterDefault;
let editTransitionsDefault = true;
this.editTransitions = typeof (data === null || data === void 0 ? void 0 : data.editTransitions) !== "undefined" ? data === null || data === void 0 ? void 0 : data.editTransitions : editTransitionsDefault;
let encryptDocumentDefault = true;
this.encryptDocument = typeof (data === null || data === void 0 ? void 0 : data.encryptDocument) !== "undefined" ? data === null || data === void 0 ? void 0 : data.encryptDocument : encryptDocumentDefault;
let exportAsImageDefault = true;
this.exportAsImage = typeof (data === null || data === void 0 ? void 0 : data.exportAsImage) !== "undefined" ? data === null || data === void 0 ? void 0 : data.exportAsImage : exportAsImageDefault;
let extractContentDefault = true;
this.extractContent = typeof (data === null || data === void 0 ? void 0 : data.extractContent) !== "undefined" ? data === null || data === void 0 ? void 0 : data.extractContent : extractContentDefault;
let extractPagesDefault = true;
this.extractPages = typeof (data === null || data === void 0 ? void 0 : data.extractPages) !== "undefined" ? data === null || data === void 0 ? void 0 : data.extractPages : extractPagesDefault;
let mergeDocumentDefault = true;
this.mergeDocument = typeof (data === null || data === void 0 ? void 0 : data.mergeDocument) !== "undefined" ? data === null || data === void 0 ? void 0 : data.mergeDocument : mergeDocumentDefault;
let movePagesDefault = true;
this.movePages = typeof (data === null || data === void 0 ? void 0 : data.movePages) !== "undefined" ? data === null || data === void 0 ? void 0 : data.movePages : movePagesDefault;
let ocrConversionDefault = true;
this.ocrConversion = typeof (data === null || data === void 0 ? void 0 : data.ocrConversion) !== "undefined" ? data === null || data === void 0 ? void 0 : data.ocrConversion : ocrConversionDefault;
let outlineDefault = true;
this.outline = typeof (data === null || data === void 0 ? void 0 : data.outline) !== "undefined" ? data === null || data === void 0 ? void 0 : data.outline : outlineDefault;
let pdfaConversionDefault = true;
this.pdfaConversion = typeof (data === null || data === void 0 ? void 0 : data.pdfaConversion) !== "undefined" ? data === null || data === void 0 ? void 0 : data.pdfaConversion : pdfaConversionDefault;
let portfolioDefault = true;
this.portfolio = typeof (data === null || data === void 0 ? void 0 : data.portfolio) !== "undefined" ? data === null || data === void 0 ? void 0 : data.portfolio : portfolioDefault;
let printDocumentDefault = true;
this.printDocument = typeof (data === null || data === void 0 ? void 0 : data.printDocument) !== "undefined" ? data === null || data === void 0 ? void 0 : data.printDocument : printDocumentDefault;
let redactDefault = true;
this.redact = typeof (data === null || data === void 0 ? void 0 : data.redact) !== "undefined" ? data === null || data === void 0 ? void 0 : data.redact : redactDefault;
let renameDocumentDefault = true;
this.renameDocument = typeof (data === null || data === void 0 ? void 0 : data.renameDocument) !== "undefined" ? data === null || data === void 0 ? void 0 : data.renameDocument : renameDocumentDefault;
let rotatePagesDefault = true;
this.rotatePages = typeof (data === null || data === void 0 ? void 0 : data.rotatePages) !== "undefined" ? data === null || data === void 0 ? void 0 : data.rotatePages : rotatePagesDefault;
let sanitizeDefault = true;
this.sanitize = typeof (data === null || data === void 0 ? void 0 : data.sanitize) !== "undefined" ? data === null || data === void 0 ? void 0 : data.sanitize : sanitizeDefault;
let scalePagesDefault = true;
this.scalePages = typeof (data === null || data === void 0 ? void 0 : data.scalePages) !== "undefined" ? data === null || data === void 0 ? void 0 : data.scalePages : scalePagesDefault;
let showHelpDefault = true;
this.showHelp = typeof (data === null || data === void 0 ? void 0 : data.showHelp) !== "undefined" ? data === null || data === void 0 ? void 0 : data.showHelp : showHelpDefault;
let signDocumentDefault = true;
this.signDocument = typeof (data === null || data === void 0 ? void 0 : data.signDocument) !== "undefined" ? data === null || data === void 0 ? void 0 : data.signDocument : signDocumentDefault;
let splitDocumentDefault = true;
this.splitDocument = typeof (data === null || data === void 0 ? void 0 : data.splitDocument) !== "undefined" ? data === null || data === void 0 ? void 0 : data.splitDocument : splitDocumentDefault;
let transcribeDocumentDefault = true;
this.transcribeDocument = typeof (data === null || data === void 0 ? void 0 : data.transcribeDocument) !== "undefined" ? data === null || data === void 0 ? void 0 : data.transcribeDocument : transcribeDocumentDefault;
let uploadFileDefault = true;
this.uploadFile = typeof (data === null || data === void 0 ? void 0 : data.uploadFile) !== "undefined" ? data === null || data === void 0 ? void 0 : data.uploadFile : uploadFileDefault;
let uploadUrlDefault = true;
this.uploadUrl = typeof (data === null || data === void 0 ? void 0 : data.uploadUrl) !== "undefined" ? data === null || data === void 0 ? void 0 : data.uploadUrl : uploadUrlDefault;
}
static getAddWatermarkDefault() {
return true;
}
static getAddWatermarkDescription() {
return "If disabled, then the \"add watermark\" dialog is deactivated.";
}
static getChangeDocumentSettingsDefault() {
return true;
}
static getChangeDocumentSettingsDescription() {
return "If disabled, then the \"change document settings\" dialog is deactivated.";
}
static getChangeDocumentViewDefault() {
return true;
}
static getChangeDocumentViewDescription() {
return "If disabled, the \"change document view\" dialog is deactivated.";
}
static getCompressDefault() {
return true;
}
static getCompressDescription() {
return "If disabled, then the \"compress\" dialog is deactivated.";
}
static getConvertDocumentDefault() {
return true;
}
static getConvertDocumentDescription() {
return "If deactivated, then the \"convert document\" dialog is deactivated.";
}
static getCreateBarcodeDefault() {
return true;
}
static getCreateBarcodeDescription() {
return "If disabled, then the \"create Barcode\" dialog is deactivated.";
}
static getDeletePagesDefault() {
return true;
}
static getDeletePagesDescription() {
return "If disabled, then the \"delete pages\" dialog is deactivated.";
}
static getDetectBarcodeDefault() {
return true;
}
static getDetectBarcodeDescription() {
return "If disabled, then the \"detect Barcode\" dialog is deactivated.";
}
static getEditAnnotationDefault() {
return true;
}
static getEditAnnotationDescription() {
return "If disabled, then the \"edit annotation\" dialog is deactivated.";
}
static getEditAttachmentDefault() {
return true;
}
static getEditAttachmentDescription() {
return "If disabled, then the \"edit attachment\" dialog is deactivated.";
}
static getEditBackgroundDefault() {
return true;
}
static getEditBackgroundDescription() {
return "If disabled, then the \"edit background\" dialog is deactivated.";
}
static getEditBoxesDefault() {
return true;
}
static getEditBoxesDescription() {
return "If disabled, then the \"edit boxes\" dialog is deactivated.";
}
static getEditFormsDefault() {
return true;
}
static getEditFormsDescription() {
return "If disabled, then the \"edit forms\" dialog is deactivated.";
}
static getEditHeaderFooterDefault() {
return true;
}
static getEditHeaderFooterDescription() {
return "If disabled, then the \"edit header\/footer\" dialog is deactivated.";
}
static getEditTransitionsDefault() {
return true;
}
static getEditTransitionsDescription() {
return "If disabled, then the \"edit transitions\" dialog is deactivated.";
}
static getEncryptDocumentDefault() {
return true;
}
static getEncryptDocumentDescription() {
return "If disabled, then the \"encrypt document\" dialog is deactivated.";
}
static getExportAsImageDefault() {
return true;
}
static getExportAsImageDescription() {
return "If disabled, then the \"export as image\" dialog is deactivated.";
}
static getExtractContentDefault() {
return true;
}
static getExtractContentDescription() {
return "If disabled, then the \"extract content\" dialog is deactivated.";
}
static getExtractPagesDefault() {
return true;
}
static getExtractPagesDescription() {
return "If disabled, then the \"extract pages\" dialog is deactivated.";
}
static getMergeDocumentDefault() {
return true;
}
static getMergeDocumentDescription() {
return "If disabled, then the \"merge document\" dialog is deactivated.";
}
static getMovePagesDefault() {
return true;
}
static getMovePagesDescription() {
return "If disabled, then the \"move pages\" dialog is deactivated.";
}
static getOcrConversionDefault() {
return true;
}
static getOcrConversionDescription() {
return "If disabled, then the \"OCR conversion\" dialog is deactivated.";
}
static getOutlineDefault() {
return true;
}
static getOutlineDescription() {
return "If disabled, then the \"edit outline\" dialog is deactivated.";
}
static getPdfaConversionDefault() {
return true;
}
static getPdfaConversionDescription() {
return "If disabled, then the \"PDF\/A conversion\" dialog is deactivated.";
}
static getPortfolioDefault() {
return true;
}
static getPortfolioDescription() {
return "If disabled, then the \"portfolio\" dialog is deactivated.";
}
static getPrintDocumentDefault() {
return true;
}
static getPrintDocumentDescription() {
return "If disabled, then the \"print document\" dialog is deactivated.";
}
static getRedactDefault() {
return true;
}
static getRedactDescription() {
return "If disabled, then the \"redact\" dialog is deactivated.";
}
static getRenameDocumentDefault() {
return true;
}
static getRenameDocumentDescription() {
return "If disabled, then the \"rename document\" dialog is deactivated.";
}
static getRotatePagesDefault() {
return true;
}
static getRotatePagesDescription() {
return "If disabled, then the \"rotate pages\" dialog is deactivated.";
}
static getSanitizeDefault() {
return true;
}
static getSanitizeDescription() {
return "If disabled, then the \"sanitize\" dialog is deactivated.";
}
static getScalePagesDefault() {
return true;
}
static getScalePagesDescription() {
return "If disabled, then the \"scale pages\" dialog is deactivated.";
}
static getShowHelpDefault() {
return true;
}
static getShowHelpDescription() {
return "When set to true the portal page shall display help and info messages.";
}
static getSignDocumentDefault() {
return true;
}
static getSignDocumentDescription() {
return "If disabled, then the \"sign document\" dialog is deactivated.";
}
static getSplitDocumentDefault() {
return true;
}
static getSplitDocumentDescription() {
return "If disabled, then the \"split document\" dialog is deactivated.";
}
static getTranscribeDocumentDefault() {
return true;
}
static getTranscribeDocumentDescription() {
return "If disabled, then the \"transcribe document\" dialog is deactivated.";
}
static getUploadFileDefault() {
return true;
}
static getUploadFileDescription() {
return "If disabled, then the \"upload file\" dialog is deactivated.";
}
static getUploadUrlDefault() {
return true;
}
static getUploadUrlDescription() {
return "If disabled, then the URL to PDF conversion is deactivated.";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new Functions(data);
}
toJson() {
return {
'addWatermark': this.addWatermark,
'changeDocumentSettings': this.changeDocumentSettings,
'changeDocumentView': this.changeDocumentView,
'compress': this.compress,
'convertDocument': this.convertDocument,
'createBarcode': this.createBarcode,
'deletePages': this.deletePages,
'detectBarcode': this.detectBarcode,
'editAnnotation': this.editAnnotation,
'editAttachment': this.editAttachment,
'editBackground': this.editBackground,
'editBoxes': this.editBoxes,
'editForms': this.editForms,
'editHeaderFooter': this.editHeaderFooter,
'editTransitions': this.editTransitions,
'encryptDocument': this.encryptDocument,
'exportAsImage': this.exportAsImage,
'extractContent': this.extractContent,
'extractPages': this.extractPages,
'mergeDocument': this.mergeDocument,
'movePages': this.movePages,
'ocrConversion': this.ocrConversion,
'outline': this.outline,
'pdfaConversion': this.pdfaConversion,
'portfolio': this.portfolio,
'printDocument': this.printDocument,
'redact': this.redact,
'renameDocument': this.renameDocument,
'rotatePages': this.rotatePages,
'sanitize': this.sanitize,
'scalePages': this.scalePages,
'showHelp': this.showHelp,
'signDocument': this.signDocument,
'splitDocument': this.splitDocument,
'transcribeDocument': this.transcribeDocument,
'uploadFile': this.uploadFile,
'uploadUrl': this.uploadUrl,
};
}
clone() {
return Functions.fromJson(this.toJson());
}
}
exports.Functions = Functions;
//# sourceMappingURL=Functions.js.map