@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
72 lines • 3.85 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.MetadataPdf = void 0;
const index_1 = require("./../index");
class MetadataPdf extends index_1.Metadata {
constructor(data) {
super(data);
this.annotations = index_1.AnnotationsDocument.fromJson(data === null || data === void 0 ? void 0 : data.annotations);
this.attachments = index_1.AttachmentsDocument.fromJson(data === null || data === void 0 ? void 0 : data.attachments);
this.backgrounds = index_1.BackgroundsDocument.fromJson(data === null || data === void 0 ? void 0 : data.backgrounds);
this.folders = index_1.FoldersDocument.fromJson(data === null || data === void 0 ? void 0 : data.folders);
this.form = index_1.FormDocument.fromJson(data === null || data === void 0 ? void 0 : data.form);
this.headersFooters = index_1.HeadersFootersDocument.fromJson(data === null || data === void 0 ? void 0 : data.headersFooters);
this.images = index_1.ImagesDocument.fromJson(data === null || data === void 0 ? void 0 : data.images);
this.information = index_1.MetadataInformation.fromJson(data.information);
this.pages = index_1.PagesDocument.fromJson(data === null || data === void 0 ? void 0 : data.pages);
this.security = index_1.Security.fromJson(data.security);
this.signatures = index_1.SignaturesDocument.fromJson(data === null || data === void 0 ? void 0 : data.signatures);
this.transitions = index_1.TransitionsDocument.fromJson(data === null || data === void 0 ? void 0 : data.transitions);
}
static getAnnotationsDescription() {
return "";
}
static getAttachmentsDescription() {
return "";
}
static getBackgroundsDescription() {
return "";
}
static getFoldersDescription() {
return "";
}
static getFormDescription() {
return "";
}
static getHeadersFootersDescription() {
return "";
}
static getImagesDescription() {
return "";
}
static getInformationDescription() {
return "";
}
static getPagesDescription() {
return "";
}
static getSecurityDescription() {
return "";
}
static getSignaturesDescription() {
return "";
}
static getTransitionsDescription() {
return "";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new MetadataPdf(data);
}
toJson() {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
return Object.assign(Object.assign({}, (super.toJson())), { 'annotations': (_a = this.annotations) === null || _a === void 0 ? void 0 : _a.toJson(), 'attachments': (_b = this.attachments) === null || _b === void 0 ? void 0 : _b.toJson(), 'backgrounds': (_c = this.backgrounds) === null || _c === void 0 ? void 0 : _c.toJson(), 'folders': (_d = this.folders) === null || _d === void 0 ? void 0 : _d.toJson(), 'form': (_e = this.form) === null || _e === void 0 ? void 0 : _e.toJson(), 'headersFooters': (_f = this.headersFooters) === null || _f === void 0 ? void 0 : _f.toJson(), 'images': (_g = this.images) === null || _g === void 0 ? void 0 : _g.toJson(), 'information': (_h = this.information) === null || _h === void 0 ? void 0 : _h.toJson(), 'pages': (_j = this.pages) === null || _j === void 0 ? void 0 : _j.toJson(), 'security': (_k = this.security) === null || _k === void 0 ? void 0 : _k.toJson(), 'signatures': (_l = this.signatures) === null || _l === void 0 ? void 0 : _l.toJson(), 'transitions': (_m = this.transitions) === null || _m === void 0 ? void 0 : _m.toJson() });
}
clone() {
return MetadataPdf.fromJson(this.toJson());
}
}
exports.MetadataPdf = MetadataPdf;
//# sourceMappingURL=MetadataPdf.js.map