wubzz / pdf-merge

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

enable "*.pdf" as filename input #25

Closed LockedOnNone closed 6 years ago

LockedOnNone commented 6 years ago

so I'll write my code like this:

const PDFMerge = require('pdf-merge');
const files = [
    `*.pdf`
];
//Save as new file
PDFMerge(files, {output: `combined.pdf`})
.then((buffer) => {

});

so it can support code like this. pdftk *.pdf cat output combined.pdf

wubzz commented 6 years ago

This probably worked before #23. To support this we need to make a deviation here which makes it so that *.pdf continues down the code instead of trying to read the file.