How do I change the font size to export the pdf at datatables plug in?
I looked at the sources and could not find where does it!
any body can help me??
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As Adam stated, you must modify the action script. In TableTools 2.0.1 the file i the one that Adam stated.
In the action script Fonts are defined on line 212 for the title:
and on line 218 for the other text
There is full reference for the library used to generate the PDF (i point out the font-part) here : http://alivepdf.bytearray.org/alivepdf-asdoc/org/alivepdf/fonts/FontFamily.html
After you have modified the action script you must compile a new copy_cvs_xls_pdf.swf with the command found on top of the action script file:
Compile using: mxmlc –target-player=10.0.0 -static-link-runtime-shared-libraries=true -library-path+=lib ZeroClipboardPdf.as
You’ll need the Flex 4 SDK to build the SWF – which you can get free from the Adobe open source pages.
I tried it and it works.
You should always check out http://datatables.net/forums/ also, i found this that helped me compile the file!
hope it helps