I have already a script that dynamically creates an HTML file that is emailed as an attachment to selected recipients. This file displays information from a database. The file is created - then emailed - then deleted.
What I require is code to convert this HTML file to PDF so the recipient can have either HTML or PDF or both as attachments.
The HTML file contains simple css styling, 2 images and a table to display numerical data. It probably fits onto 1 page of A4 - at worst two pages set out as landscape.
I also require the code to mail the pdf as an attachment.