Skip to content

Commit

Permalink
fix(pdfImages): add if statement for outputPath param
Browse files Browse the repository at this point in the history
  • Loading branch information
Frazer Smith committed Jan 19, 2020
1 parent fea63cf commit acd0277
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,9 @@ class Poppler {
}

args.push(file);
args.push(outputPath);
if (outputPath) {
args.push(outputPath);
}

execFile(
path.join(this.popplerPath, 'pdfimages'),
Expand Down

0 comments on commit acd0277

Please sign in to comment.