Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE development » Framework » Printing Σ (Sigma) not possible in PDF
Re: Printing Σ (Sigma) not possible in PDF [message #7896 is a reply to message #7895] Wed, 01 January 2025 07:00 Go to previous messageGo to previous message
htManager is currently offline  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}");
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Importing default values -> enclosed in quotes
Next Topic: Introduction to the Radicore framework
Goto Forum:
  


Current Time: Wed Jan 08 16:19:35 EST 2025

Total time taken to generate the page: 0.01031 seconds