@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
40 lines • 1.78 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ClearToolboxAnnotation = void 0;
class ClearToolboxAnnotation {
constructor(data) {
let flattenDefault = false;
this.flatten = typeof (data === null || data === void 0 ? void 0 : data.flatten) !== "undefined" ? data === null || data === void 0 ? void 0 : data.flatten : flattenDefault;
let pagesDefault = "";
this.pages = typeof (data === null || data === void 0 ? void 0 : data.pages) !== "undefined" ? data === null || data === void 0 ? void 0 : data.pages : pagesDefault;
}
static getFlattenDefault() {
return false;
}
static getFlattenDescription() {
return "Set to true to flatten annotations of the selected pages.\n\n**Important:** flattening means, the interactive annotation objects will be removed and only their visual representation will remain in the page content of the resulting document.";
}
static getPagesDefault() {
return "";
}
static getPagesDescription() {
return "Defines which page(s) annotations shall be removed from. The page number can be an individual page, a page range, or a list (separated with commas) (e.g., \"1,5-6,9\"). To specify \"all pages,\" use an asterisk (\"\\*\").";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new ClearToolboxAnnotation(data);
}
toJson() {
return {
'flatten': this.flatten,
'pages': this.pages,
};
}
clone() {
return ClearToolboxAnnotation.fromJson(this.toJson());
}
}
exports.ClearToolboxAnnotation = ClearToolboxAnnotation;
//# sourceMappingURL=ClearToolboxAnnotation.js.map