Open hamedgasemi200 opened 1 year ago
You need to pass the following configurations when generating a PDF to support RTL languages
'autoScriptToLang' => true,
'autoLangToFont' => true,
'autoArabic' => true
Example:
$pdf = PDF::loadView('your-view.php', $data , [], [
'autoScriptToLang' => true,
'autoLangToFont' => true,
'autoArabic' => true
]);
I don't know why it does not display italic arabic/farsi text. It shows regular text with sans-serif font correctly, but when the text is italic, it shows some squares instead of letters.