Kompetenz/prints3/as_utf_class.php
2023-02-23 10:52:06 +01:00

22 lines
574 B
PHP
Executable File

<?php
require_once('fpdi.php');
# teilweise wird chr(149) in den Briefköpfen verwendet. Dieses durch uchr ersetzen
function uchr ($u) {
return mb_convert_encoding('&#' . intval($u) . ';', 'UTF-8', 'HTML-ENTITIES');
}
class utfFPDF extends FPDI
{
function Cell($w, $h=0, $txt='', $border=0, $ln=0, $align='', $fill=false, $link='')
{
if ($txt != ''){
$txt = utf8_decode($txt);
}
parent::Cell($w, $h, $txt, $border, $ln, $align, $fill, $link);
}
}
if (!class_exists('FPDF_TPL')) {
require_once('fpdf_tpl.php');
}
?>