Skip to content

Commit

Permalink
docs(readme): add parameter for pdfToText function (#573)
Browse files Browse the repository at this point in the history
* docs(contributing): add parameter for pdfToText function

* Update README.md

---------

Co-authored-by: Frazer Smith <frazer.dev@icloud.com>
  • Loading branch information
jaeseongDev and Fdawgs authored Jul 30, 2024
1 parent 9480652 commit ba77074
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,10 @@ const options = {
firstPageToConvert: 1,
lastPageToConvert: 2,
};
const outputFile = "test_document.txt";

poppler
.pdfToText(file, options)
.pdfToText(file, outputFile, options)
.then((res) => {
console.log(res);
})
Expand Down

0 comments on commit ba77074

Please sign in to comment.