How to generate PDF

Try using a web service, for example - https://www.html2pdfrocket.com/#