Change font-size in PDF Export

Change font-size in PDF Export

FHJwebmasterFHJwebmaster Posts: 2Questions: 0Answers: 0
edited March 2013 in TableTools
Hello,

everything works really fine and DataTables and TableTools are very great tools.

But where or how can I change the font-size of the text in table header and table data ?

Kind regards,

Klaus

Replies

  • jliebermannjliebermann Posts: 7Questions: 0Answers: 0
    you must change the swf action script (zeroclipboardPDF.as in the media/as3 subfolder) and compile it to create a new swf . i have changed (besides other things, for instance paper size > A3 since alive PDF does not) the font type and size here:

    [code]

    ..
    private function configPdf():PDF
    {
    ....
    /* Add the title / message if there is one */
    pdf.setFont( new CoreFont(FontFamily.HELVETICA), 14 );
    if ( title != "" )
    {
    pdf.writeText(11, title+"\n");
    }

    pdf.setFont( new CoreFont(FontFamily.HELVETICA), 6 );

    ....
    [/code]
    just change the font size (14 or 6) to a value you like, or even change the font family.

    the compile command is in the file at the top, you need the adobe flex sdk which is available for free from adobe. has been some time since i did this but you can find the needed informations at the internet / adobe forums / flex sdk documentation / alive pdf doku. i never used adobe flex before and barely understand the code ofd the action script but it's self explaining and some modifications are possible (my code looks terrible but it works)
  • FHJwebmasterFHJwebmaster Posts: 2Questions: 0Answers: 0
    Hello jliebermann,

    thank you, I could change the font-size now :)

    Kind regards,

    Klaus
This discussion has been closed.