Hey Dan,
This can already be achieved with Repeating data in Generate Document. Please check out the help documents for more information, and how to configure the action and template:
https://help.nintex.com/en-US/nwc/Content/Designer/Actions/GenerateDocument.htm
Thanks