I would like to share my experience. This might help someone like me who has no background in ActionScript.
The key point is that there are two versions of the ZeroClipboard class in the as3 folder
- one in the ZeroClipboard.as file
- other in the ZeroClipboardPdf.as file
Obviously, we will work with the ZeroClipboardPdf.as file if we want to change the font size for exporting Pdf. However, when I tried the command at the top of this file
mxmlc --target-player=11.1 -static-link-runtime-shared-libraries=true -library-path+=lib ZeroClipboardPdf.as
Changed --target-player to 11.1 according to the comment above
I got the following error:
Error: A file found in a source-path 'ZeroClipboardPdf' must have the same name as the class definition inside the file 'ZeroClipboard'.
So here is what I did
- changed the file named "ZeroClipboard.as" to "ZeroClipboardNonePdf.as"
- changed the file named "ZeroClipboardPdf.as" to "ZeroClipboard.as"
Then using this command
mxmlc --target-player=11.1 -static-link-runtime-shared-libraries=true -library-path+=lib ZeroClipboard.as
and he generated a file called ZeroClipboard.swf in the as3 folder, and I renamed this file to copy_csv_xls_pdf.swf and used it in my project.
Dev Env: Windows 7, Adobe Flex 4.6
source share