Model
Shipment
Magento\Sales\Model\Order\Pdf\Shipment
What it does
This class generates PDF documents for order shipments in Magento 2.
Developers use it when they need to create or customize packing slips that display shipment information, including products, quantities, and SKUs.
It's automatically invoked when printing shipment documents from the admin panel or can be called programmatically to generate shipment PDFs.
Public Methods
- getPdf()
- newPage()