Copy link to clipboard
Copied
Hello,
we are trying to merge several documents in one PDF with Power Automate, however we noticed there is a limit of 20 documents to be merged.
Is there a way to overcome this limit?
The flow collect all files' contents in an array by the Apply to each action and then gives that as input to the Merge PDFs action.
Thanks in advance for the support
Copy link to clipboard
Copied
That's a hard limit. You'll need to make a call for each set of 20 that you want to combine using the output of one as the first input to the next.
Copy link to clipboard
Copied
You mean a sort of splitting the group in smaller groups and then merge the output?
Thanks
Copy link to clipboard
Copied
Yes. Let's say you have 45 files. You'd merge them in batches.
Merge files 1-20 then use the output of that call as the input to merge 21-40 (the output file plus 19 more) then use the output of that to merge 40 - 45.
Alternatively, merge 1-20, then 21-40, then 40-45 and then merge the three output files. But then you have 4 transactions instead of just three.
But also remember that there are file size limitations on the input that you'll need to be thinking about.
Copy link to clipboard
Copied
How to merge output? redactle unlimited
Copy link to clipboard
Copied
If you follow my instructions in the first method above, the final output file will be the result of merging all of the files.