Hi,
I need to add some pdf files to a single file. I am not able to use I do not have much knowledge. I am learning. does not work. no error is returned. tried to add the external module easy-pdf-merge and use it in the node function follow my steps:
-
docker run -it --rm --name n8n -p 5678:5678 -e NODE_FUNCTION_ALLOW_EXTERNAL=easy-pdf-merge -v ~/.n8n:/root/.n8n n8nio/n8n
-
/usr/local/lib/node_modules/n8n # npm install --save easy-pdf-merge
-
saved /tmp/File_1.pdf and /tmp/File_2.pdf
Function:
const merge = require('easy-pdf-merge');
merge(['/tmp/File_1.pdf', '/tmp/File_2.pdf'], '/tmp/File_Merged.pdf', function (err) {
if (err) {
return console.log(err)
}
console.log('Successfully merged!')
});
return [{ json: {} }]
My node:
I accept other alternatives to be able to join pdf files to a single.