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, csvFlashand pdfFlashbutton 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 titleoption being set for the excelFlashand pdfFlashbuttons.
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 messageoption of the pdfFlashbutton 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 pdfHtml5button type.
Page size and orientation
The page size and orientation of the pdfFlashbutton type can be set using the orientationand pageSizeoptions. By default these values are portraitand A4, but are easily customised as shown in this example which uses a landscape layout and US legal paper size. Page sizesupports A3, A4, A5, LEGAL, LETTERand TABLOIDvalues. Orientationcan be either verticalor horizontal.