The service “HtmlStringToPDFFile” is used to generate a PDF file using HTML. The main advantage of using this service is that we can use “GetHTMLString” service from WebPart Workshop to convert WebPart into HTML string, and then generate the webpart in PDF format. The PDF generated is saved to the file path specified in the "PDFFile" input. This input contains both the file path and file name
This service also offers useful features such as header line, footer line, header html , footer html, etc. We can also adjust the height, width and choose the orientation of the PDF file that we would like to generate.