Change font-size in PDF Export
Change font-size in PDF Export
FHJwebmaster
Posts: 2Questions: 0Answers: 0
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
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
This discussion has been closed.
Replies
[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)
thank you, I could change the font-size now :)
Kind regards,
Klaus