Recursively generate pages from hundreds of PDFs

Hi - I want to use one single template and generate individual pages from hundreds of PDF files by embedding them using the Adobe embed snippet (PDF Embed API | Embed PDF in HTML | Adobe Document Services - Adobe Developers) which would be in the template. This way, I could have analytics tracking in the template as well. Does anyone know how I would do this? It’s basically as simple as inserting the file path into the snippet for each page.

Is it possible the section configuration/template could accomplish this?