@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
38 lines • 1.5 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RemoveToolboxAnnotation = void 0;
const index_1 = require("./../index");
class RemoveToolboxAnnotation {
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;
this.selection = index_1.SelectionRemove.fromJson(data.selection);
}
static getFlattenDefault() {
return false;
}
static getFlattenDescription() {
return "Set to true to flatten the selected annotations.\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 getSelectionDescription() {
return "";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new RemoveToolboxAnnotation(data);
}
toJson() {
var _a;
return {
'flatten': this.flatten,
'selection': (_a = this.selection) === null || _a === void 0 ? void 0 : _a.toJson(),
};
}
clone() {
return RemoveToolboxAnnotation.fromJson(this.toJson());
}
}
exports.RemoveToolboxAnnotation = RemoveToolboxAnnotation;
//# sourceMappingURL=RemoveToolboxAnnotation.js.map