Skip to content

[a feature request] Can't set the pdf file direction to RTL #1104

@majebry

Description

@majebry

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?

  1. Load any of the pdf packages mpdf, dompdf or tcpdf
  2. set the direction of the generated file by the method setRightToLeft(true)
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions