@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
52 lines • 2.1 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.FitHeightDestinationFitHeight = void 0;
class FitHeightDestinationFitHeight {
constructor(data) {
let leftOffsetDefault = 0;
this.leftOffset = typeof (data === null || data === void 0 ? void 0 : data.leftOffset) !== "undefined" ? data === null || data === void 0 ? void 0 : data.leftOffset : leftOffsetDefault;
let metricsDefault = "px";
this.metrics = typeof (data === null || data === void 0 ? void 0 : data.metrics) !== "undefined" ? data === null || data === void 0 ? void 0 : data.metrics : metricsDefault;
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 getLeftOffsetDefault() {
return 0;
}
static getLeftOffsetDescription() {
return "The area's offset from the left page margin.";
}
static getMetricsDefault() {
return "px";
}
static getMetricsDescription() {
return "Unit for the X-axis\/Y-axis position and signature field height and width arguments:\n\n* pt = Points(1\/72 inch)\n* pc = Picas(12 points)\n* px = Pixels(1\/96 inch)\n* mm = Millimeters\n* in = Inches";
}
static getPageDefault() {
return 1;
}
static getPageDescription() {
return "The document page to which the jump will be.";
}
static getPageMin() {
return 1;
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new FitHeightDestinationFitHeight(data);
}
toJson() {
return {
'leftOffset': this.leftOffset,
'metrics': this.metrics,
'page': this.page,
};
}
clone() {
return FitHeightDestinationFitHeight.fromJson(this.toJson());
}
}
exports.FitHeightDestinationFitHeight = FitHeightDestinationFitHeight;
//# sourceMappingURL=FitHeightDestinationFitHeight.js.map