1

My language is Hebrew and when I print pdf of invoice, package slip(maybe other pdf's) the letters are flipped(last is first...),how can I fix this ?

And if I need to edit a core file, how do I do it properly?

thanks.

1 Answer 1

5

You can override this file and do your change which you want in PDF

vendor/magento/module-sales/Model/Order/Pdf/AbstractPdf.php 
5
  • And if I change this file in this specific location it won't be changed after an update or something? Commented Oct 18, 2016 at 11:02
  • You have to override this file methods. Commented Oct 18, 2016 at 13:16
  • ok thanks, you know what I should change in order to reverse back the letters? Commented Oct 18, 2016 at 13:33
  • 1
    BUT, if you are on a custom theme, you need to move this file into this folder structure: /frontend/Vendor/theme/Magento_Sales/-----and the rest I am not really sure of exactly......what would the path be after Magento_Sales? Commented Aug 6, 2017 at 18:20
  • I want to change a position of Items ordered in invoice PDF. Have you any idea about this? @AshishJagnani Commented Aug 17, 2018 at 5:47

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.