Log in
Model

Shipment

Magento\Sales\Model\Order\Pdf\Shipment

What it does

This class generates PDF documents for order shipments/packing slips in Magento 2.

Developers use this to create printable shipment documents that display shipped items, quantities, SKUs, and order information.

It's typically called when merchants need to print packing slips for shipped orders through the admin panel or programmatically.

Public Methods

  • getPdf()
  • newPage()