Stirling-PDF icon indicating copy to clipboard operation
Stirling-PDF copied to clipboard

[Bug]: when convertin a pdf words are mirrored

Open elrefaie80 opened this issue 7 months ago • 3 comments

Installation Method

Docker

The Problem

i have just installed it, i have tried to convert and arabic pdf to html or any available method, the file is converted but all of the letters in each word are mirrored, starting from he left of the word going to the right although arabic words start from right to left, i have tried several files

Version of Stirling-PDF

latest

Last Working Version of Stirling-PDF

No response

Page Where the Problem Occurred

No response

Docker Configuration


Relevant Log Output


Additional Information

No response

Browsers Affected

No response

No Duplicate of the Issue

  • [x] I have verified that there are no existing issues raised related to my problem.

elrefaie80 avatar May 04 '25 21:05 elrefaie80

Hi! @elrefaie80 I think it is because RTL is not correctly supported. Can you try: Add RTL Support to HTML Output Modify the HTML output to include RTL attributes Add dir="rtl" to the HTML body tag Use appropriate CSS for RTL text alignment? Hope it would solve your issue!

ailunc avatar May 07 '25 02:05 ailunc

can you please explain in details where to the direction tag to be used in any generated html ?

elrefaie80 avatar May 15 '25 05:05 elrefaie80

you mean that i have to edit each html file outputted to add dir="rtl" or is there a system edit that will automatically do this for any converted Arabic document

elrefaie80 avatar May 15 '25 05:05 elrefaie80