CalcBuilder Forum

Change pdf font size and table

Usuario anonymous 2011-10-21 14:29:44

Hi Moonsoft team
I can't seem to find out where you change the export pdf matrix. The font size is 16px and I need to make it smaller because it's
overlapping and I need the width table wider too.

Thank you

Moonsoft support 2011-10-21 14:30:02

Hi ,

In order to change font size and table size for pdf you should change
/components/com_calcbuilder/views/calcbuilder/tmpl/pdf.php.

Probably you are interested in $this->SetFont(...); lines and
$w=190/(count($colsNames)+1); in FancyTable function which is used to set
the width of the table shown. Also you can change page orientation: change
$pdf=new PDF(); to $pdf=new PDF('L');
If you want more info, visit http://www.fpdf.org/

Hope this helps. Regards,

...
Support/development 10 hours

Get a bigger amount of hours for more complex tasks and get a 10% discount

Buy now!
...
Support/development 40 hours

With the peace of mind of having a professional team at your service (20% discount)

Buy now!