@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
34 lines • 1.51 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CompressObjects = void 0;
class CompressObjects {
constructor(data) {
let objectStreamSizeDefault = 200;
this.objectStreamSize = typeof (data === null || data === void 0 ? void 0 : data.objectStreamSize) !== "undefined" ? data === null || data === void 0 ? void 0 : data.objectStreamSize : objectStreamSizeDefault;
}
static getObjectStreamSizeDefault() {
return 200;
}
static getObjectStreamSizeDescription() {
return "Specifies the number of objects that may be combined into one stream. The higher the number, the higher the expected effect (assuming that the document contains a large number of objects). On the other hand, very large object streams can have a negative effect on the loading and display speed of the document in readers. For values beyond 500 objects, it is recommended to perform a manual check whether the document can still be displayed without problems.";
}
static getObjectStreamSizeMin() {
return 1;
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new CompressObjects(data);
}
toJson() {
return {
'objectStreamSize': this.objectStreamSize,
};
}
clone() {
return CompressObjects.fromJson(this.toJson());
}
}
exports.CompressObjects = CompressObjects;
//# sourceMappingURL=CompressObjects.js.map