I have upgraded my Dolibarr to the newest 6.0.4.
My customized invoice is using a OCR-B-Font for the IBAN number (International Bank Account Number).
This worked fine with this 3 lines in the previous dolibar versions:
$OCRB = $pdf->addTTFfont(K_PATH_FONTS . 'Ocr_BB.ttf', 'TrueTypeUnicode', '', 32);
$pdf->SetFont($OCRB, '', 12, '', 'false');
$pdf->MultiCell(100, 3, $outputlangs->convToOutputCharset($account->iban), 0, 'L', 0);
Now, with version 6.0.4., I get this error
Fatal error: Call to undefined method TCPDI::addTTFfont() in D:\dolibarr\www\dolibarr\htdocs\core\lib\pdf.lib.php on line 901
901 is the line starting with $OCRB =
How can I use an OCR-B-Font
(available in dolibarr\www\dolibarr\htdocs\includes\tcpdf\fonts as ‘ocr_bb.ctg.z’, ‘ocr_bb.php’, ‘OCR_BB.TTF’ and ‘ocr_bb.z’)
with the newest version of Dolibarr?