Export Handler for PDF format.
Function to handle the export process.
Writes the PDF to file.
[Validate]