Creating document template PDF with dynamic amount of copies

I need to create a PDF with document template that has multiple copies of the single page template. The amount of needed copies is stored in entity and requirement is to produce a single PDF with all needed copies as separate pages. Any tips on how to implement this?
2 answers


Have you looked at MergeMultiplePDFs Java action in community commons?  Using this Java action, you can combine multiple FileDocs into a single FileDoc.  One note: the max number of files you can merge is recommended to be no larger than 10, so if you’ll be combining more than that, you’ll need to build your microflow to do some intermediate merges to stay within that limit.

Hope that helps,



That helped me to handle this.

I just in dynamic loop created multiple single documents and then combined all to one new document which I send to download.

Thanks for the help.