In this project I have created a small component for converting the html elements to be downloaded as pdf. You need to pass the id of the root element and a name for the file. The rest is handled by the GenericPdfDownloader