The admins wants to update the format/content of the pdf being generated for the school contract. After changing the link from production into development, I got this error saying "Required parameter $currentfont follows optional parameter $isunicode". That's why I cant view or change the pdf's content.
this is the production/live url for viewing the pdf
<a href="https://example.site.edu/contract/pdf/'.$contract_lists->id.'/'.$semester.'/'.$schoolyear.'"><button type="button" class="btn btn-info btn-rounded"><i class="fas fa-file-pdf"></i> Contract</button></a>
and after changing the link into development
<a href="'.URL::route('contract.pdf', ['id' => $contract_lists->id, 'semester' => $semester, 'schoolyear' => $schoolyear, 'type' => $contract_lists->category]).'" target="_blank"><button type="button" class="btn btn-secondary btn-rounded"><i class="fas fa-file-pdf"></i> Contract</button></a>
it starts throwing this error. Does my PHP version have something to do with it?