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.

3

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

vendor/magento/module-sales/Model/Order/Pdf/AbstractPdf.php
  • And if I change this file in this specific location it won't be changed after an update or something? – hezided Oct 18 '16 at 11:02
  • You have to override this file methods. – Ashish Jagnani Oct 18 '16 at 13:16
  • ok thanks, you know what I should change in order to reverse back the letters? – hezided Oct 18 '16 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 Aug 6 '17 at 18:20
  • I want to change a position of Items ordered in invoice PDF. Have you any idea about this? @AshishJagnani – Dhaduk Mitesh Aug 17 '18 at 5:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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