Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.
In reza's example there I prefer to generate all the HTML in the powerapp using the html text control, and utilize ForAll Loop to generate your <li> etc. data. I find a word template I like. Use a website to strip the "Office" stuff out of the file so I only have HTML, then insert data where I want it using forall on the gallery datasource. where you can utilize all the columns for each Item in a section of that document.
Once done, then you can pass to flow to do the PDF conversion using the onedrive method or a premium pdf connector.
If you have high volume, I utilize a custom Azure function that utilizes an open source PDF library to save costs which isn't too bad to create an handle assuming you already have premium licenses etc.