Creditmemo
Magento\Sales\Model\Order\Pdf\Creditmemo
What it does
This class generates PDF documents for credit memos in Magento 2.
Developers use this model when they need to create printable credit memo PDFs for customers or administrators, typically triggered when viewing or emailing credit memos from the admin panel or customer account.
It handles the layout, formatting, and rendering of credit memo information including order details, items, totals, and store branding.
Public Methods
- getPdf()
- newPage()