Hi all,
I try to print the invoice in admin panel. Show the error below:
Array ( [0] => Invalid file path: /var/www/html/lib/internal/GnuFreeFont/FreeSerifBold.ttf [1] => #0 /var/www/html/vendor/magento/zendframework1/library/Zend/Pdf/Font.php(603): Zend_Pdf_FileParserDataSource_File->__construct('/var/www/html/l...') #1 /var/www/html/vendor/magento/module-sales/Model/Order/Pdf/AbstractPdf.php(876): Zend_Pdf_Font::fontWithPath('/var/www/html/l...') #2 /var/www/html/vendor/magento/module-sales/Model/Order/Pdf/Shipment.php(118): Magento\Sales\Model\Order\Pdf\AbstractPdf->_setFontBold(Object(Zend_Pdf_Style), 10) #3 /var/www/html/vendor/magento/module-sales/Controller/Adminhtml/Shipment/AbstractShipment/PrintAction.php(62): Magento\Sales\Model\Order\Pdf\Shipment->getPdf(Array) #4 /var/www/html/vendor/magento/framework/App/Action/Action.php(107): Magento\Sales\Controller\Adminhtml\Shipment\AbstractShipment\PrintAction->execute() #5 /var/www/html/vendor/magento/module-backend/App/AbstractAction.php(235): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http)) #6 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Backend\App\AbstractAction->dispatch(Object(Magento\Framework\App\Request\Http)) #7 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Sales\Controller\Adminhtml\Shipment\PrintAction\Interceptor->___callParent('dispatch', Array) #8 /var/www/html/vendor/magento/module-backend/App/Action/Plugin/Authentication.php(143): Magento\Sales\Controller\Adminhtml\Shipment\PrintAction\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #9 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch(Object(Magento\Sales\Controller\Adminhtml\Shipment\PrintAction\Interceptor), Object(Closure), Object(Magento\Framework\App\Request\Http)) #10 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Sales\Controller\Adminhtml\Shipment\PrintAction\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #11 /var/www/html/generated/code/Magento/Sales/Controller/Adminhtml/Shipment/PrintAction/Interceptor.php(26): Magento\Sales\Controller\Adminhtml\Shipment\PrintAction\Interceptor->___callPlugins('dispatch', Array, NULL) #12 /var/www/html/vendor/magento/framework/App/FrontController.php(55): Magento\Sales\Controller\Adminhtml\Shipment\PrintAction\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http)) #13 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch(Object(Magento\Framework\App\Request\Http)) #14 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent('dispatch', Array) #15 /var/www/html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}(Object(Magento\Framework\App\Request\Http)) #16 /var/www/html/generated/code/Magento/Framework/App/FrontController/Interceptor.php(26): Magento\Framework\App\FrontController\Interceptor->___callPlugins('dispatch', Array, Array) #17 /var/www/html/vendor/magento/framework/App/Http.php(135): Magento\Framework\App\FrontController\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http)) #18 /var/www/html/generated/code/Magento/Framework/App/Http/Interceptor.php(24): Magento\Framework\App\Http->launch() #19 /var/www/html/vendor/magento/framework/App/Bootstrap.php(257): Magento\Framework\App\Http\Interceptor->launch() #20 /var/www/html/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http\Interceptor))