Forum
Calc Builder Support
Calc Builder supportForums
Public write access is disabled. Please login
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
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