Forum


Calc Builder Support

Calc Builder support
Forums
Public write access is disabled. Please login

Customize pdf styling 04.12.2014 22:55

Is there a way to fine-tune the styling/css of the pdf output without filling the layout with a bunch of inline styles?

Re: Customize pdf styling 05.12.2014 11:14

Hello,

PDF library is able to handle classes and import css files. By default, if you enable 'import boostrap' in your calculator, JOOMLA/modules/mod_calcbuilder/assets/css/default.css is imported, so you could add your classes there.
In order to add new css files, you can edit JOOMLA/components/com_calcbuilder/views/calcbuilder/tmpl/pdf.php file, copy any of the css import lines and create your own:

$stylesheet = file_get_contents ( JURI::base () . 'modules/mod_calcbuilder/assets/css/YOUROWN.css' );
$mpdf->WriteHTML ( $stylesheet, 1 );

placing them at line 34

Regards,
Moonsoft Team
www.moonsoft.es
Are you satisfied with our products/services/support?
Please help us to keep improving, add a review at  joomla extensions site and  magento connect

Our clients' feedback