This article provides a patch for the issue where the print order logic doesn't work from the order view page.

This known issue is mentioned in the Order Manager extension in the 2.4.2 version and lesser.

There are two possible ways to fix this issue:

1. Manually.

You will need to edit the  file

IWD/OrderManager/Model/Pdf/Order.php


add following code:  
use Magento\Sales\Model\Order\Pdf\Config; protected $_localeResolver; public function __construct( \Magento\Payment\Helper\Data $paymentData, \Magento\Framework\Stdlib\StringUtils $string, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Framework\Filesystem $filesystem, Config $pdfConfig, \Magento\Sales\Model\Order\Pdf\Total\Factory $pdfTotalFactory, \Magento\Sales\Model\Order\Pdf\ItemsFactory $pdfItemsFactory, \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate, \Magento\Framework\Translate\Inline\StateInterface $inlineTranslation, \Magento\Sales\Model\Order\Address\Renderer $addressRenderer, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Store\Model\App\Emulation $appEmulation, \Magento\Framework\Locale\ResolverInterface $localeResolver, array $data = [] ) { $this->_localeResolver = $localeResolver; parent::__construct( $paymentData, $string, $scopeConfig, $filesystem, $pdfConfig, $pdfTotalFactory, $pdfItemsFactory, $localeDate, $inlineTranslation, $addressRenderer, $storeManager, $appEmulation, $data ); } 

It should be like on image:

Image Placeholder

2. Apply patch


Go to root folder extension and use the following command:
git apply 0001-fix-issue-with-print-order-on-order-view-page.patch