Export to PDF
This function creates a PDF version of the report as close to the printed version as possible.