skijump Posted June 2 Share Posted June 2 I'd looking to save printer ink. My PS 1.6 shop prints invoices without bold text. My PS 8.2.0 shop prints headings, totals, etc with bold text wasting printer ink. Any ideas how to edit the invoice.tpl to not have bold text? Thanks. Link to comment Share on other sites More sharing options...
areeba123 Posted June 2 Share Posted June 2 Locate the PDFGenerator.php File: Navigate to classes/pdf/PDFGenerator.php. Modify the Font Setting: Find the line: php CopyEdit $this->font = 'dejavusans'; Replace it with: php CopyEdit $this->font = self::DEFAULT_FONT; This change ensures that the default font (typically Helvetica) is used, which supports bold styling. Override the PDF Template (Optional): To customize the invoice template, copy the invoice.tpl file from the core directory to your theme's PDF folder: swift CopyEdit /themes/your-theme/pdf/invoice.tpl Modify the template as needed without affecting the core files. Ewonta+1PrestaShop+1 These adjustments should help in reducing bold text and saving printer ink. Let me know if you need further assistance! Link to comment Share on other sites More sharing options...
skijump Posted June 3 Author Share Posted June 3 @areeba123 Thanks for the notes. I have the same code as the github page below, I'm unable to find your suggestion of: $this->font = 'dejavusans'; https://github.com/PrestaShop/PrestaShop/blob/develop/classes/pdf/PDFGenerator.php Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now