This is fairly easy if you know about html and javascript. I did this with a Sharepoint List
You should make a flow that gets an item from your list, then use a compose connector to build your own html.
I built my html on Vs Code (which is free) and then pasted it in my compose connector.
I inlcuded CSS and JS in my HTML to have more functionality in one file only. Now I have an HTML with everything in it, including links to attachments.
Then you can convert it to PDF.
Feel free to ask in case you need help with this