HTML Files to PDF
Convert an HTML file to a PDF document using the fromHtml
method. The resulting PDF will include the HTML file's content.
After rendering to PDF, use the saveAs
method to export it as 'output.pdf' in the current directory or your specified path.