X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/ed6483fa05ff6f489a7cfc4ff72fdc4d4d8f3889..5645165f4415a07f6a50d9601bdf59a1cc345697:/topdf.php diff --git a/topdf.php b/topdf.php index 744ef4a2..d1c954e9 100644 --- a/topdf.php +++ b/topdf.php @@ -309,6 +309,9 @@ if ($totals_only) { $html .= ''; $html .= ''; } + +// Output footer. +$html .= '

'.$i18n->getKey('form.mail.footer').'

'; // By this time we have html ready. // Determine title for report. @@ -354,7 +357,7 @@ class MyyPDF extends TCPDF { // Position at 15 mm from bottom. $this->SetY(-15); // Set font. - $this->SetFont('helvetica', 'I', 8); + $this->SetFont('freeserif', 'I', 8); // Print localized page number. $this->Cell(0, 10, $this->page_word.' '.$this->getAliasNumPage().'/'.$this->getAliasNbPages(), 0, false, 'C', 0, '', 0, false, 'T', 'M'); } @@ -369,8 +372,6 @@ if (file_exists('images/'.$user->team_id.'.png')) // Set page word for the footer. $pdf->SetPageWord($i18n->getKey('label.page')); -// TODO: currently, we have problems rendering PDF in some languages such as Russian (headers, page word). -// Not sure how to fix it... One option is to switch to mPDF - consider. // Set document information. $pdf->SetCreator(PDF_CREATOR); @@ -393,8 +394,8 @@ $pdf->setImageScale(PDF_IMAGE_SCALE_RATIO); // Add a page. $pdf->AddPage(); -// Set font. -$pdf->SetFont('helvetica', '', 10); +// Set font (freeserif seems to work for all languages). +$pdf->SetFont('freeserif', '', 10); // helvetica here does not work for Russian. // Write HTML. $pdf->writeHTML($html, true, false, false, false, '');