Basic initialization
The Flash export buttons plug-in for Buttons provides four export buttons: copyFlash - copy to clipboard; csvFlash - save to CSV file; excelFlash - save to XLSX file; pdfFlash - save to PDF file. Please note that the HTML5 button types are preferred over the Flash buttons as they do not require Adobe Flash and are generally more configurable, however, not all browsers provide the functionality required for those buttons.
File name
By default the name of the file created by the excelFlash, csvFlash and pdfFlash button types will automatically be taken from the document's title element. It is also possible to set the file name to a specific value using the title option of these three button types. This example shows the title option being set for the excelFlash and pdfFlash buttons.
Custom PDF message
It can often be useful to include description text in the print view to provide summary information about the table that will be included in the generated PDF. The message option of the pdfFlash button type provides this ability. It is a simple string and cannot contain any formatting information. If you require control over the styling of the exported PDF, please refer to the pdfHtml5 button type.
Page size and orientation
The page size and orientation of the pdfFlash button type can be set using the orientation and pageSize options. By default these values are portrait and A4, but are easily customised as shown in this example which uses a landscape layout and US legal paper size. Page size supports A3, A4, A5, LEGAL, LETTER and TABLOID values. Orientation can be either vertical or horizontal.