Skip to content

Commit

Permalink
docs(readme): tidy example code
Browse files Browse the repository at this point in the history
  • Loading branch information
Frazer Smith committed Jun 15, 2020
1 parent 35c64d7 commit 8469292
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,8 @@ const options = {
pngFile: true
};

await poppler.pdfToCairo(options, file).then((res) => {
console.log(res);
});
const res = await poppler.pdfToCairo(options, file);
console.log(res);
```

### poppler.pdfToHtml
Expand All @@ -92,7 +91,7 @@ const options = {
lastPageToConvert: 2
};

await poppler.pdfToHtml(options, file).then((res) => {
poppler.pdfToHtml(options, file).then((res) => {
console.log(res);
});
```
Expand All @@ -113,7 +112,7 @@ const options = {
lastPageToConvert: 2
};

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

0 comments on commit 8469292

Please sign in to comment.