Export options can be configured via the OnGetCustomExportOptions event.

In this example a header and a footer are specified for PDF document and its orientation is set to "Landscape". The "phpexcel" engine is used for export to Excel to save the result .xls file in the binary format. The output filename is customized too.

See the event code listing.