You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using pdf:language name="arabic" we are expecting the whole document to switch to RTL similar to CSS.
If you inspect current GitHub page and edit the HTML tag and add direction: rtl; you will notice everything literally is being rendered from RTL. This is the desired result that would fix most of the compatibility issues in rendering Arabic fonts in the correct direction.
Minimal Example to Reproduce
add <pdf:language name="arabic" /> to English html document with a table.
Expected Behavior
The table should render from right to left meaning the columns should now switch positions in reverse.
Actual Behavior
The table position stays the same. And if I want to render everything in RTL, I have to manually change the TD tags positions. which is forcing me to create the same document in Arabic language.
timobrembeck
changed the title
pdf:language name="arabic" does not switch to RTL<pdf:language name="arabic"/> does not switch table to RTL
Apr 15, 2023
Describe the Bug
When using
pdf:language name="arabic"
we are expecting the whole document to switch to RTL similar to CSS.If you inspect current GitHub page and edit the HTML tag and add
direction: rtl;
you will notice everything literally is being rendered from RTL. This is the desired result that would fix most of the compatibility issues in rendering Arabic fonts in the correct direction.Minimal Example to Reproduce
add
<pdf:language name="arabic" />
to English html document with a table.Expected Behavior
The table should render from right to left meaning the columns should now switch positions in reverse.
Actual Behavior
The table position stays the same. And if I want to render everything in RTL, I have to manually change the TD tags positions. which is forcing me to create the same document in Arabic language.
System Information
OS version: macOS 13.3.1 (22E261)
Python version: 3.10.11
XHTML2PDF version: 0.2.9
The text was updated successfully, but these errors were encountered: