wubzz / pdf-merge

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

Package randomly stopped working #34

Closed adame21 closed 5 years ago

adame21 commented 5 years ago

So I already opened an issue, and as I was going to get the error message to paste here it seemed to be working.

Now, about a week later, with no changes to the code its no longer working

this is the error message: Error: Command failed: pdftk "c:\fakepathformyprivacy\0.pdf" "c:\fakepathformyprivacy\1.pdf" "c:\fakepathformyprivacy\2.pdf" "c:\fakepathformyprivacy\3.pdf" "c:\fakepathformyprivacy\4.pdf" "c:\fakepathformyprivacy\5.pdf" "c:\fakepathformyprivacy\6.pdf" "c:\fakepathformyprivacy\7.pdf" "c:\fakepathformyprivacy\8.pdf" cat output C:\fakepathformyprivacy\AppData\Local\Temp\tmp-7788ahGpEsaY8P2T

the code im using looks like this:

const PDFMerge = require('pdf-merge');

PDFMerge(pdfNameArr)
.then(mergedPdf=>{
    return mergedPdf
})
.catch(err=>{
    console.log(err)
    return err
})

Please help with this. Thanks in advance

adame21 commented 5 years ago

Found the error, it was a problem with the writing of the pdfs locally before the actual merge thanks, closing