-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
人間失格
committed
Oct 11, 2017
1 parent
673707e
commit a97b4b7
Showing
3 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# PDF2Pic | ||
|
||
Node module for converting PDF to image based on pdf2img by Fitra Adity | ||
|
||
## Usage | ||
|
||
```javascript | ||
let PDF2Pic = require('pdf2pic') | ||
let converter = new PDF2Pic({ | ||
density: 100, | ||
savename: "untitled", | ||
savedir: "./images" | ||
}) | ||
|
||
converter.convert("/path/to/pdf/sample.pdf") | ||
.then(resolve => { | ||
console.log("image converted successfully") | ||
}) | ||
``` | ||
|
||
___ | ||
|
||
This module is based on Fitra Adity's Great work. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters