Skip to content
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.

Change the pdf direction to the right (RTL) #151

Open
kareem0badawy opened this issue Sep 22, 2021 · 0 comments
Open

Change the pdf direction to the right (RTL) #151

kareem0badawy opened this issue Sep 22, 2021 · 0 comments

Comments

@kareem0badawy
Copy link

kareem0badawy commented Sep 22, 2021

The Question

Is it possible to change the orientation of the pdf file according to the language when the Arabic language is RTL and in the case, if it is in English it is LTR?

I control it through the HTML page and it is displayed on the HTML page in this way, but in the PDF file it does not change like the HTML

Screenshots

Screen From PDF
image

Screen From HTML Page
image

My Code

$page->pdf([
    'path' => public_path(sprintf('pdf/reports/%s.pdf')),
    'printBackground'=> true,
    'format'=> "A4",
    'direction' => 'rtl', // Not Working
    'margin' => [
        'top'=> "0px",
        'bottom'=> "0px",
        'left'=> "0px",
        'right'=> "0px",
        'direction' => 'rtl',
    ],
]);
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant