Log in
Model

Invoice

Magento\Sales\Model\Order\Pdf\Invoice

What it does

This class generates PDF documents for sales order invoices in Magento 2.

Developers use this class when they need to create printable or downloadable invoice PDFs, either from the admin panel or programmatically.

It handles the layout, formatting, and rendering of invoice details including order items, totals, customer addresses, and company logo.

Public Methods

  • getPdf()
  • newPage()