There is a wide variety of choices when it comes to creating a PDF from a web app in the browser. In the current Smashing Magazine, @rachelandrew takes a look at the tools that are available and shares her recommendations to help you find the tool that works best for you.
https://www.smashingmagazine.com/2019/06/create-pdf-web-application/