Skip to main content
2 of 2
added 4 characters in body; edited tags
Khoa TruongDinh
  • 32.3k
  • 11
  • 90
  • 156

How to override Pdf Invoice in Magento 2?

Magento 2:

I was looking to add a custom text on the footer in pdf invoice. I have done this by adding a small piece of code here in this file

vendor/magento/module-sales/Model/Order/Pdf/Invoice.php

I know it's not good to edit core files, so how can i override this file?

I tried by placing the same file with directories in app/code/Local/Sales/Model/Order/Pdf/Invoice.php but not working.