SugarCRM Quote PDF customization

SugarCRM Quote PDF customization

September 29, 2013 PHP SugarCRM Uncategorized 0

1) Customize Fonts in default PDF of SugarCRM

  • copy and Edit  custom/modules/Quotes/sugarpdf/sugarpdf.quotes.php
  • add html tag for font.
  • like '<b>'.value.'</b>' for bold
  • '<u>'.value.'</u>' for underline
  • '<i>'.value.'</i>'
  • For Example you want to change for quote number :

 Code:  1.(For Label) : $quote[0]['TITLE'] = '<u><b><i>'.$mod_strings['LBL_PDF_QUOTE_NUMBER'].'</i></b></u>';


                 2.(For Value)     :   $quote[0]['VALUE']['value'] = '<u><b><i>'.format_number_display($this->bean->quote_num,$this->bean->system_id).'</i></b></u>';


Output :     

2) Customize Layout Using TcPDF :

 

Code  :  coming  soon

 

Leave a Reply

Your email address will not be published. Required fields are marked *