Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ToC has wrong text direction for right-to-left languages #664

Open
seluianova opened this issue Jan 23, 2023 · 1 comment
Open

ToC has wrong text direction for right-to-left languages #664

seluianova opened this issue Jan 23, 2023 · 1 comment
Labels
bug Something isn't working rtl Issues related to right-to-left alphabets tables Issues with rendering tables tags Problems with custom <pdf> tags

Comments

@seluianova
Copy link

seluianova commented Jan 23, 2023

Example in Arabic language:
image

We set "name" language property in our html template:
<pdf:language name="arabic"/>

This makes the text direction correct for the pages themselves.
But in the table of contents, the direction of the text remains wrong (it's left-to-right)

Adding "dir" property doesn't help either:
<div dir="rtl">
<pdf:toc/>
</div>

@timobrembeck timobrembeck added bug Something isn't working rtl Issues related to right-to-left alphabets tags Problems with custom <pdf> tags labels Feb 1, 2023
@YDA93
Copy link

YDA93 commented Apr 14, 2023

Same thing happens to html tables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working rtl Issues related to right-to-left alphabets tables Issues with rendering tables tags Problems with custom <pdf> tags
Projects
None yet
Development

No branches or pull requests

3 participants