UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

49 lines 2.69 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ConverterReport = void 0; class ConverterReport { constructor(data) { let contentProblemsDefault = false; this.contentProblems = typeof (data === null || data === void 0 ? void 0 : data.contentProblems) !== "undefined" ? data === null || data === void 0 ? void 0 : data.contentProblems : contentProblemsDefault; let fontAliasUsageDefault = false; this.fontAliasUsage = typeof (data === null || data === void 0 ? void 0 : data.fontAliasUsage) !== "undefined" ? data === null || data === void 0 ? void 0 : data.fontAliasUsage : fontAliasUsageDefault; let fontIsMissingDefault = false; this.fontIsMissing = typeof (data === null || data === void 0 ? void 0 : data.fontIsMissing) !== "undefined" ? data === null || data === void 0 ? void 0 : data.fontIsMissing : fontIsMissingDefault; } static getContentProblemsDefault() { return false; } static getContentProblemsDescription() { return "If \"true\", then an error (ERR\\_CONVERTER\\_CONTENT\\_PROBLEMS) is triggered if a problem occurs with a content item during the conversion. The following are among the problems:\n\n* Unicode resolution of characters is not possible\n* Vertical text elements\n* Unsupported text effects\n* Unsupported graphics compression\n* Unsupported colour space\n* Non-integrated sub-document that was not converted\n* Tables with a \"right-to-left\" alignment in the content\n* The document contains mathematical formulas"; } static getFontAliasUsageDefault() { return false; } static getFontAliasUsageDescription() { return "If \"true\", then an error (ERR\\_CONVERTER\\_FONT\\_ALIAS\\_USED) is triggered if a font was not found during conversion and in its place a substitute (alias) font was used."; } static getFontIsMissingDefault() { return false; } static getFontIsMissingDescription() { return "If \"true\", then an error (ERR\\_CONVERTER\\_FONT\\_IS\\_MISSING) is triggered if a font was not found during conversion."; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new ConverterReport(data); } toJson() { return { 'contentProblems': this.contentProblems, 'fontAliasUsage': this.fontAliasUsage, 'fontIsMissing': this.fontIsMissing, }; } clone() { return ConverterReport.fromJson(this.toJson()); } } exports.ConverterReport = ConverterReport; //# sourceMappingURL=ConverterReport.js.map