I use this quite a lot to print multiple individual PDFs
It loops through the records in a query and prints all to a directory and names them something meaningful in this case an index based on an id. Which is exactly in line with Pat H's comment.
Where the fields in the QUERY-ListofIDtoPrint...