Mobile app version of vmapp.org
Login or Join
Bryan171

: Magento Order Invoices - Text TINY, how do I enlarge it? When printing invoices (PDF) from Magento, the font is 7px... it's absolutely tiny, half my customers probably won't be able to read

@Bryan171

Posted in: #Magento

When printing invoices (PDF) from Magento, the font is 7px... it's absolutely tiny, half my customers probably won't be able to read it, is there a way to make it 12+?

Thanks.

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Bryan171

3 Comments

Sorted by latest first Latest Oldest Best

 

@Caterina187

You'll need to add on some numbers where it has $this->y.
I also have a newly-updated extension which creates great-looking PDFs that you can fully customize.

10% popularity Vote Up Vote Down


 

@Margaret670

It is in the files in /app/code/core/Mage/Sales/Model/Order/Pdf/ you need to change the different fonts.

But if you set the font or size, so the text becomes bigger you need to find all the places in the code where it says $this->y -=XX; (most xx=10) and change all these places to a higher number if you change the font size.

Another way is to use my extension, where you can make all the pdf's from HTML.

10% popularity Vote Up Vote Down


 

@Goswami781

According to this entry on the magento message boards you need to edit these files:

/app/code/core/Mage/Sales/Model/Order/Pdf/Invoice.php
/app/code/core/Mage/Sales/Model/Order/Pdf/Abstract.php
/app/code/core/Mage/Sales/Model/Order/Pdf/Items/Abstract.php


and change the second parameter, which is the font size, to the number you want on these methods:

_setFontRegular(), _setFontBold(), and _setFontItalic()

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme