Is there a table in the database or a folder where Magento (1.9 and 2.1) stores Pdf Invoices?

  • 2
    No PDF are generated on Fly as soon as user/admin requests it Apr 13, 2017 at 12:53
  • But @VishwasBhatnagar user can use extension for that Apr 13, 2017 at 13:08

2 Answers 2


Magento doesn't store PDF files, it generates PDF on demand.
It keeps all the required data in different tables and compose the PDF based on configurations and PDF template.

  • Thanks! Do you know the name of the events (admin panel and user panel) called when the pdf is shown? I want to create an observer and show another pdf.
    – Vixent
    Apr 13, 2017 at 13:36
  • You'll find pdf directory in model of sales module. There is a PHP file which renders the pdf, you can extend that renderer and customize the pdf as you want. Apr 13, 2017 at 13:58
  • Thanks for updating knowledge. I also came to know about it by your answer. Apr 13, 2017 at 14:09
  • ++1 from me for answer Apr 13, 2017 at 14:10
  • @Arman It's a good solution. But I simply want to open a pdf file (that I generate before) saved in a folder. I was trying to override the method getPdf of \Magento\Sales\Model\Order\Pdf\Invoice.php but it doesn't work (at least in magento 2.1).
    – Vixent
    Apr 13, 2017 at 14:28

These two extensions you can use

1 Export PDF Magento

2 Mazento PDF Extension

  • Any of the module doesn't export invoices which is requirement here. Apr 13, 2017 at 13:18
  • Yes that generates reports. But I thought they might help. Thanks for updating knowledge Apr 13, 2017 at 14:08

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.