Edit the Magento Invoice PDF Templates

Code Location

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

Changing the font size

Change the font size in the two files:

  • /app/code/core/Mage/Sales/Model/Order/Pdf/Abstract.php (line 487-507)
  • /app/code/core/Mage/Sales/Model/Order/Pdf/Items/Abstract.php (line 255-274)

Change the invoice logo

  • Admin -> Configuration -> Sales -> Invoice and Packing Slip Design

More info

  • Changing the invoice size from A4 to letter
  • Changing the font from Libertine to Helvetica
  • Read up here.

4 Responses to “Edit the Magento Invoice PDF Templates”

  1. Ronny Anthony Says:

    Cool information!!! Thanks!

  2. Kevin Godden Says:

    Hi, Just the very information I was looking for - Thanks!

    Kev.

  3. Matt Says:

    How do I change the line spacing for the address and the size of the logo? Also for some reason the Grand Total and the product line font size still stays at 7pts.
    thanks for any help!

  4. Terminology software developer Says:

    Is it possible to generate invoice pdf without zlib extension?
    I tried to comment out logo and some other stuff but nothing changes, i receive an error from Zend Framework pdf code: “You have to use zlib extension”

Leave a Reply