Skip to content

Issue with displaying Arabic (and likely other RTL languages) in generated PDFs #17808

@snipe

Description

@snipe

We have a user who has a mix of Arabic and English in their EULAs and they're encountering an issue where the Arabic is displaying incorrectly, garbled. The fonts are fine, it's just parsing them incorrectly.

Unfortunately, this looks like it might be an issue with DomPDF, not with us specifically.

It's possible we could try to switch to using a different package, such as https://github.com/misterspelik/laravel-pdf, but we would obviously need to test this pretty thoroughly to make sure there are no unintended consequences. It also hasn't been updated in quite some time, which gives me a bit of pause as well.

There are also workarounds for DomPDF via Ar-PHP, but I don't know if that will support non-Arabic RTL text.

We also already include TCPDF, so we might be able to make it work using that library instead of DomPDF.

OR we can consider trying to write some sort of CSS shim into the parsedown handler. :(

Metadata

Metadata

Assignees

Labels

Type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions