@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
40 lines • 1.62 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CommentRelation = void 0;
class CommentRelation {
constructor(data) {
let commentDefault = "";
this.comment = typeof (data === null || data === void 0 ? void 0 : data.comment) !== "undefined" ? data === null || data === void 0 ? void 0 : data.comment : commentDefault;
let objectIDDefault = "";
this.objectID = typeof (data === null || data === void 0 ? void 0 : data.objectID) !== "undefined" ? data === null || data === void 0 ? void 0 : data.objectID : objectIDDefault;
}
static getCommentDefault() {
return "";
}
static getCommentDescription() {
return "The textual comment to add.";
}
static getObjectIDDefault() {
return "";
}
static getObjectIDDescription() {
return "The object ID of the annotation. **Info:** A PDF object ID consists of two numbers, where the first number selects the object's number and the second the \"generation\" of the object. The object ID shall always be unique within the context of the document and can be used to select a specific object.";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new CommentRelation(data);
}
toJson() {
return {
'comment': this.comment,
'objectID': this.objectID,
};
}
clone() {
return CommentRelation.fromJson(this.toJson());
}
}
exports.CommentRelation = CommentRelation;
//# sourceMappingURL=CommentRelation.js.map