@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
40 lines • 1.67 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.QrSwissPaymentPdf = void 0;
class QrSwissPaymentPdf {
constructor(data) {
let modeDefault = "appendAtEnd";
this.mode = typeof (data === null || data === void 0 ? void 0 : data.mode) !== "undefined" ? data === null || data === void 0 ? void 0 : data.mode : modeDefault;
let pageDefault = 1;
this.page = typeof (data === null || data === void 0 ? void 0 : data.page) !== "undefined" ? data === null || data === void 0 ? void 0 : data.page : pageDefault;
}
static getModeDefault() {
return "appendAtEnd";
}
static getModeDescription() {
return "Selects the page relative position to place the barcode at.\n\n* insertBefore = Places the barcode on a new, empty page before the selected page.\n* appendAtEnd = Places the barcode on a new, empty page at the end of the document.\n* addToPage = Place the barcode on the selected page.";
}
static getPageDefault() {
return 1;
}
static getPageDescription() {
return "The number of the page, the barcode shall be placed at or relative to. (depending on the selected placement \"mode\".)";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new QrSwissPaymentPdf(data);
}
toJson() {
return {
'mode': this.mode,
'page': this.page,
};
}
clone() {
return QrSwissPaymentPdf.fromJson(this.toJson());
}
}
exports.QrSwissPaymentPdf = QrSwissPaymentPdf;
//# sourceMappingURL=QrSwissPaymentPdf.js.map