Refer the blog for Individual merge- https://filezipo.io/how-to-merge-multiple-files-attachments-of-an-individual-record-in-single-pdf/