UNPKG

pdf-parse-test

Version:

Pure TypeScript, cross-platform module for extracting text, images, and tabular data from PDFs. Run directly in your browser or in Node!

16 lines 350 B
export class TextResult { pages = []; text = ''; total = 0; getPageText(num) { for (const pageData of this.pages) { if (pageData.num === num) return pageData.text; } return ''; } constructor(total) { this.total = total; } } //# sourceMappingURL=TextResult.js.map