--- a/vendor/magento/module-sales/Controller/Adminhtml/Invoice/AbstractInvoice/PrintAction.php +++ b/vendor/magento/module-sales/Controller/Adminhtml/Invoice/AbstractInvoice/PrintAction.php @@ -55,7 +55,7 @@ abstract class PrintAction extends \Magento\Backend\App\Action \Magento\Sales\Api\InvoiceRepositoryInterface::class )->get($invoiceId); if ($invoice) { - $pdf = $this->_objectManager->create(\Magento\Sales\Model\Order\Pdf\Invoice::class)->getPdf([$invoice]); + $pdf = $this->_objectManager->create(\Dinhvan\Sales\Model\Order\Pdf\Invoice::class)->getPdf([$invoice]); $date = $this->_objectManager->get( \Magento\Framework\Stdlib\DateTime\DateTime::class )->date('Y-m-d_H-i-s');