Pdf arabic support

Arabic characters is showing like that

??? ??? ??? ??? ??? ???

how could I solve that issue ?

I am trying to edit pdf_crabe.modules.php

I am changed

dol_syslog("write_file outputlangs->defaultlang=".(is_object($outputlangs) ? $outputlangs->defaultlang : 'null'));

to

dol_syslog("write_file outputlangs->defaultlang=".(is_object($outputlangs) ? $outputlangs->defaultlang : 'ar-EG'));

if (!empty($conf->global->MAIN_USE_FPDF)) $outputlangs->charset_output = 'ISO-8859-1';```

to

		if (!empty($conf->global->MAIN_USE_FPDF)) $outputlangs->charset_output = 'UTF-8';

and also was make the font like that

				$pdf->SetFont('aealarabiya', 'B', $default_font_size - 1); // We reposition the default font

but without No success

any help ?

Hello,

Strange because it’s working by default normally.
Attached an example on my V14.0.5
(PROV233).zip (112.5 KB)

2 Likes

It worked after Update

thank you

can you help me plz ???

Hello

What do you need to assist you?