The path to the PDF file.
Optional
begin: numberThe page number to start from. If not provided, defaults to the first page.
Optional
end: numberThe page number to end at. If not provided, defaults to the last page.
An async generator that yields the text content of each page in the PDF.
Will yield an empty string if an error occurs while processing a page.
for await (const pageText of pdfIteratePages('path/to/file.pdf')) {
console.log(pageText);
}
Generated using TypeDoc
Parse text content of each page in a PDF file. Array indices correspond to page numbers.