@softvision/webpdf-wsclient-typescript
Version:
A simplified and optimized API client library for the webPDF server
40 lines • 1.75 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExtractionParagraphs = void 0;
class ExtractionParagraphs {
constructor(data) {
let fileFormatDefault = "xml";
this.fileFormat = typeof (data === null || data === void 0 ? void 0 : data.fileFormat) !== "undefined" ? data === null || data === void 0 ? void 0 : data.fileFormat : fileFormatDefault;
let pagesDefault = "";
this.pages = typeof (data === null || data === void 0 ? void 0 : data.pages) !== "undefined" ? data === null || data === void 0 ? void 0 : data.pages : pagesDefault;
}
static getFileFormatDefault() {
return "xml";
}
static getFileFormatDescription() {
return "Used to define the output format for the PDF document text contents being extracted.\n\n* text = Text document\n* xml = XML document\n* json = JSON data structure";
}
static getPagesDefault() {
return "";
}
static getPagesDescription() {
return "Used to define which page(s) should be used for the extraction mode. The page number can be either an individual page, a page range, or a list (separated with commas) (e.g., \"1,5-6,9\"). A blank value or \"\\*\" selects all pages of the PDF document.";
}
static fromJson(data) {
if (data === undefined || data === null) {
return data;
}
return new ExtractionParagraphs(data);
}
toJson() {
return {
'fileFormat': this.fileFormat,
'pages': this.pages,
};
}
clone() {
return ExtractionParagraphs.fromJson(this.toJson());
}
}
exports.ExtractionParagraphs = ExtractionParagraphs;
//# sourceMappingURL=ExtractionParagraphs.js.map