I’ve been using ReportLabs to make pdfs in Python. It took some getting used to but I can put together just about anything I can imagine. I still get a little lost when I need to dig into the source code and how it generates pdfs from templates though.
Couple links in you can get to their parent company. https://zerodha.tech/. Tech branch for a stock trading company.