Skip to content

Commit

Permalink
up the dpi
Browse files Browse the repository at this point in the history
  • Loading branch information
Trey Smith committed Feb 28, 2022
1 parent abe3658 commit 58be039
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pdf2png-ts",
"version": "0.1.2",
"version": "0.1.3",
"description": "Takes a PDF-document and converts and delivers a PNG (Typescript Support and simplified dependencies)",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default class PDFConvert {

try {

const cmd = `gs -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -sDEVICE=png16m -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -r300 -dFirstPage=${page} -dLastPage=${page} -sOutputFile=${name} ${this.tempLocation}`
const cmd = `gs -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -sDEVICE=png16m -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -r500 -dFirstPage=${page} -dLastPage=${page} -sOutputFile=${name} ${this.tempLocation}`
exec(cmd, async (err, stdout, stderr) => {

if(err)
Expand Down

0 comments on commit 58be039

Please sign in to comment.