diff --git a/src/index.js b/src/index.js index 2ed4fc05..7d3afbd0 100644 --- a/src/index.js +++ b/src/index.js @@ -305,7 +305,9 @@ class Poppler { } args.push(file); - args.push(outputPath); + if (outputPath) { + args.push(outputPath); + } execFile( path.join(this.popplerPath, 'pdfimages'),