File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -55,15 +55,13 @@ const poppler = new Poppler("./usr/bin");
55
55
const { Poppler } = require (" node-poppler" );
56
56
```
57
57
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 )
59
59
60
60
## Examples
61
61
62
62
### poppler.pdfToCairo
63
63
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:
67
65
68
66
``` js
69
67
const { Poppler } = require (" node-poppler" );
@@ -83,9 +81,7 @@ console.log(res);
83
81
84
82
### poppler.pdfToHtml
85
83
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:
89
85
90
86
``` js
91
87
const { Poppler } = require (" node-poppler" );
@@ -104,9 +100,7 @@ poppler.pdfToHtml(file, options).then((res) => {
104
100
105
101
### poppler.pdfToText
106
102
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:
110
104
111
105
``` js
112
106
const { Poppler } = require (" node-poppler" );
You can’t perform that action at this time.
0 commit comments