Interleave multiple PDF Files

Is there a simple way to interleave multiple pdf files?

For example. Let’s say that file A has 5 pages, pdf file B has 5 pages. I need the output to match.

A - page 1
B - page 1
A - page 2
B - page 2
A - page 3
B - page 3
A - page 4
B - page 4
A - page 5
B - page 5

I kept the page count small for this example, but the page count is typically between 1000 and 5000 per file. Thanks!

You could use the Alambic API.

Search the forums for example how ot use it.

Also read this post to counteract right way potential memoery issue.

Are you on Workflow or Automate?

Thank you @jchamel, I will look into this.

@Erik, I am in Workflow.