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 invoice PDFs, typically triggered when merchants download invoices from the admin panel or when invoices are emailed to customers.
It handles formatting invoice details including line items, totals, addresses, and logos into a standardized PDF layout.
Public Methods
- getPdf()
- newPage()