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?
    – hezided
    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?
    – hezided
    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?
    – styzzz
    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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.