wubzz / pdf-merge

Merge multiple PDF Files into a single PDF document
127 stars 32 forks source link

Command failed, but works via termin #12

Closed mukuls-brdsys closed 7 years ago

mukuls-brdsys commented 7 years ago

I am getting the following error Error: Command failed: /usr/bin/pdftk '/home/user/Desktop/reports/routes/../merging/2017-03-16T05:38:13.554Z.pdf' cat output /tmp/tmp-4501zXim6Nm8BY3y Error: Unable to find file. Error: Failed to open PDF file: '/home/brds4/Desktop/reports/routes/../merging/2017-03-16T05:38:13.554Z.pdf' Errors encountered. No output created. Done. Input errors, so no output created.

at ChildProcess.exithandler (child_process.js:206:12)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

But if I execute the same command in terminal it's working fine.

mukuls-brdsys commented 7 years ago

This happens if pdftk path is set manually, It should be documented that pdftk path is not required for linux.