What is the expected behavior?
I should be able to customize the exported pdf direction to RTL
What is the current behavior?
The method setRightToLeft(true) works when generate Excel file but does not work when the exported file is PDF.
What are the steps to reproduce?
- Load any of the pdf packages
mpdf, dompdf or tcpdf
- set the direction of the generated file by the method
setRightToLeft(true)
- Try to generate pdf file using phpspreadsheet
Which versions of PhpSpreadsheet and PHP are affected?
PHP 7.3.6
PHPSpreadsheet 1.8.1
It seems that the method that changes the pdf direction in mpdf is $pdf->SetDirectionality('rtl'); but I couldn't customize it through phpspreadsheet