One way is to use thirdd party toolkits like bp3 pdf toolkit or use a java connector and use itext java api to convert html + xsl to a pdf file, you can then retrieve the pdf base64 data and store it as a process or unattached service document, which can be then delivered to the users browser. Let us know if you face difficulties.