LabelGenerator
Magento\Shipping\Model\Shipping\LabelGenerator
What it does
The LabelGenerator class is responsible for creating shipping labels for Magento 2 shipments.
Developers use this class when they need to generate printable shipping labels from carriers, which involves requesting label data from the carrier, combining multiple labels into a single PDF document, and automatically adding tracking numbers to the shipment.
This is typically used in the shipment creation process when merchants need to print labels for packages.
Public Methods
- create()
- combineLabelsPdf()
- createPdfPageFromImageString()