Re: Printing Σ (Sigma) not possible in PDF [message #7896 is a reply to message #7895] |
Wed, 01 January 2025 07:00 |
htManager
Messages: 442 Registered: May 2014
|
Senior Member |
|
|
I don't know where is my fault.
If I call the following php file, the ∑ sign will be shown correctly in a pdf file.
<?php
require('c:\xampp\htdocs\radicore\includes\tcpdf\tcpdf.php') ;
$pdf = new TCPDF();
$pdf->AddPage();
$pdf->SetFont('times', '', 16);
$pdf->Cell(40, 10, 'Großes Sigma: Σ'); // Funktioniert mit Unicode
or
$pdf->Cell(40, 10, 'Großes Sigma: ' . "\u{03A3}"); // Funktioniert mit Unicode
$pdf->Output();
?>
If I define a field in my report nothing will be shown. - array('field' => 'sigma', 'width' => 10, 'x' => 0); - $sigma = "\u{03A3}";
If I define a label with value "\u{03A3}", a ? will be shown. - array('label' => "\u{03A3}", 'width' => 10, 'x' => 0);
The value sigma will also be shown correctly if I output it in my class file with var_dump("\u{03A3}");
|
|
|