* Extract text from all pages in the document. * * Returns an array of PageText objects, one per page, containing * structured text content with position information. * * @returns Array of PageText for each page * * @example * ```typescript * const allText = await pdf.extr
()
| 3094 | * ``` |
| 3095 | */ |
| 3096 | extractText(): PageText[] { |
| 3097 | const pages = this.getPages(); |
| 3098 | const results: PageText[] = []; |
| 3099 | |
| 3100 | for (const page of pages) { |
| 3101 | results.push(page.extractText()); |
| 3102 | } |
| 3103 | |
| 3104 | return results; |
| 3105 | } |
| 3106 | |
| 3107 | /** |
| 3108 | * Search for text across all pages in the document. |
no test coverage detected