Look into SharePoint Document Templates https://www.hougaard.com/2-0-sharepoint-user-guide-reports-and-document-generation/
That should do what you’re asking about.
Look into SharePoint Document Templates https://www.hougaard.com/2-0-sharepoint-user-guide-reports-and-document-generation/
That should do what you’re asking about.