E_NOTICE and deprecation when using a pdf template
On the settings page there's an option to use a pdf template. The two notices below come up when making a receipt with it.
On a more general note will eventually need to update FPDI.
Notice: Trying to access array offset on value of type bool in fpdi_pdf_parser->_getPageRotation() (line 315 of sites\default\files\civicrm\ext\cdntaxreceipts\FPDI\fpdi_pdf_parser.php).
fpdi_pdf_parser->_getPageRotation(Array) (Line: 291)
fpdi_pdf_parser->getPageRotation(1) (Line: 239)
FPDI->importPage(1) (Line: 31)
PDF->Header() (Line: 3560)
TCPDF->setHeader() (Line: 3227)
TCPDF->startPage('', '', ) (Line: 3139)
TCPDF->AddPage() (Line: 367)
FPDF_TPL->AddPage() (Line: 295)
cdntaxreceipts_generateFormattedReceipt(Array, NULL, 1) (Line: 97)
cdntaxreceipts_processTaxReceipt(Array, NULL, 1) (Line: 774)
cdntaxreceipts_issueTaxReceipt(Object) (Line: 212)
CRM_Cdntaxreceipts_Form_ViewTaxReceipt->postProcess() (Line: 526)
CRM_Core_Form->mainProcess() (Line: 144)
CRM_Core_StateMachine->perform(Object, 'next', 'Next') (Line: 43)
CRM_Core_QuickForm_Action_Next->perform(Object, 'next') (Line: 203)
HTML_QuickForm_Controller->handle(Object, 'next') (Line: 103)
HTML_QuickForm_Page->handle('next') (Line: 352)
CRM_Core_Controller->run() (Line: 98)
CRM_Utils_Wrapper->run('CRM_Cdntaxreceipts_Form_ViewTaxReceipt', 'ViewTaxReceipt', Array) (Line: 286)
CRM_Core_Invoke::runItem(Array) (Line: 69)
CRM_Core_Invoke::_invoke(Array) (Line: 36)
CRM_Core_Invoke::invoke(Array) (Line: 88)
Drupal\civicrm\Civicrm->invoke(Array) (Line: 80)
Drupal\civicrm\Controller\CivicrmController->main(Array, '')
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 573)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 158)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 80)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 706)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in FPDI->_writeValue() (line 563 of sites\default\files\civicrm\ext\cdntaxreceipts\FPDI\fpdi.php).
FPDI->_writeValue(Array) (Line: 436)
FPDI->_putformxobjects() (Line: 523)
FPDF_TPL->_putimages() (Line: 9467)
TCPDF->_putresources() (Line: 9983)
TCPDF->_enddoc() (Line: 664)
FPDI->_enddoc() (Line: 3005)
TCPDF->Close() (Line: 300)
cdntaxreceipts_generateFormattedReceipt(Array, NULL, 1) (Line: 97)
cdntaxreceipts_processTaxReceipt(Array, NULL, 1) (Line: 774)
cdntaxreceipts_issueTaxReceipt(Object) (Line: 212)
CRM_Cdntaxreceipts_Form_ViewTaxReceipt->postProcess() (Line: 526)
CRM_Core_Form->mainProcess() (Line: 144)
CRM_Core_StateMachine->perform(Object, 'next', 'Next') (Line: 43)
CRM_Core_QuickForm_Action_Next->perform(Object, 'next') (Line: 203)
HTML_QuickForm_Controller->handle(Object, 'next') (Line: 103)
HTML_QuickForm_Page->handle('next') (Line: 352)
CRM_Core_Controller->run() (Line: 98)
CRM_Utils_Wrapper->run('CRM_Cdntaxreceipts_Form_ViewTaxReceipt', 'ViewTaxReceipt', Array) (Line: 286)
CRM_Core_Invoke::runItem(Array) (Line: 69)
CRM_Core_Invoke::_invoke(Array) (Line: 36)
CRM_Core_Invoke::invoke(Array) (Line: 88)
Drupal\civicrm\Civicrm->invoke(Array) (Line: 80)
Drupal\civicrm\Controller\CivicrmController->main(Array, '')
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 573)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 158)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 80)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 706)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)