Hi Tilal, thank you for looking into this. Please find a code sample I made to merge PDF documents in Node.js, I just tested it and the behavior is the same:
const { PdfApi } = require("asposepdfcloud");
const { MergeDocuments } = require("asposepdfcloud/src/models/mergeDocuments");
pdfApi = new PdfApi("xxxxxxxxxxxxxxxxxx",
"xxxxxxxxxxxxxxxxxxxxxx")
const modules = ['combineFilesInput1.pdf','combineFilesInput2.pdf','combineFilesInput3.pdf'];
const resultName = 'Output.pdf';
const mergeDocuments = new MergeDocuments();
mergeDocuments.list = [];
modules.forEach((file) => {
mergeDocuments.list.push(file);
});
pdfApi.putMergeDocuments(resultName, mergeDocuments, null, null)
.then((result) => {
console.log(result.status);
});
`
For the record, I am using Dropbox as storage.
combineFilesInput1.pdf (939.7 KB)
combineFilesInput2.pdf (6.9 MB)
combineFilesInput3.pdf (187.9 KB)
Upon trying several times using the same files and code, I noticed that the behavior isn’t consistent. It always combines the files and the response sometimes is 200 ‘OK’ but most of the time is 504 gateway timeout.
This is the only step I am missing to be able to fully implement your service into my workflow so I am very much looking forward for a solution.
Thanks.