LabelGenerator
Magento\Shipping\Model\Shipping\LabelGenerator
What it does
This class handles the creation and generation of shipping labels for Magento 2 shipments.
Developers use it when implementing custom shipping label functionality, as it communicates with carriers to generate labels, combines multiple labels into a single PDF document, and automatically adds tracking numbers to shipments.
It supports various image formats and PDF labels from different shipping carriers.
Public Methods
- create()
- combineLabelsPdf()
- createPdfPageFromImageString()