Skip to content

Commit 4c8b519

Browse files
authored
docs(readme): style changes
1 parent 807f74d commit 4c8b519

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

README.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,13 @@ const poppler = new Poppler("./usr/bin");
5555
const { Poppler } = require("node-poppler");
5656
```
5757

58-
[API Documentation can be found here](https://github.com/Fdawgs/node-poppler/blob/master/API.md)
58+
[**API Documentation can be found here**](https://github.com/Fdawgs/node-poppler/blob/master/API.md)
5959

6060
## Examples
6161

6262
### poppler.pdfToCairo
6363

64-
`options` object requires at least one of the following to be set: `jpegFile`; `pdfFile`; `pngFile`; `psFile`; `svgFile`; `tiffFile`.
65-
66-
Example of an async await call poppler.pdfToCairo, to convert only the first and second page of a PDF file to PNG:
64+
Example of an `async` `await` call poppler.pdfToCairo, to convert only the first and second page of a PDF file to PNG:
6765

6866
```js
6967
const { Poppler } = require("node-poppler");
@@ -83,9 +81,7 @@ console.log(res);
8381

8482
### poppler.pdfToHtml
8583

86-
Every field of the `options` object is optional.
87-
88-
Example of calling poppler.pdfToHtml with a promise:
84+
Example of calling poppler.pdfToHtml with a promise chain:
8985

9086
```js
9187
const { Poppler } = require("node-poppler");
@@ -104,9 +100,7 @@ poppler.pdfToHtml(file, options).then((res) => {
104100

105101
### poppler.pdfToText
106102

107-
Every field of the `options` object is entirely optional.
108-
109-
Example of calling poppler.pdfToText with a promise:
103+
Example of calling poppler.pdfToText with a promise chain:
110104

111105
```js
112106
const { Poppler } = require("node-poppler");

0 commit comments

Comments
 (0)