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

Wrong text direction in ToC for RTL languages in PDF export #2020

Open
Tracked by #1533
seluianova opened this issue Jan 23, 2023 · 0 comments
Open
Tracked by #1533

Wrong text direction in ToC for RTL languages in PDF export #2020

seluianova opened this issue Jan 23, 2023 · 0 comments
Labels
🐛 bug Something isn't working ⁉️ prio: low Not urgent, can be resolved in the distant future. ⛔ blocked Blocked by external dependency ☺️ effort: low Should be doable in <4h
Milestone

Comments

@seluianova
Copy link
Contributor

seluianova commented Jan 23, 2023

Describe the Bug

ToC has wrong text direction for right-to-left languages in PDF export
image

Steps to Reproduce

  1. Go to 'Pages'
  2. Select any right-to-left language, for example Arabic
  3. Select any parent page containing child pages, for example "German language"
  4. Select bulk action --> Export as PDF
  5. Check Table of Content in the exported PDF

Expected Behavior

Table of Content has right-to-left text direction (as well as pages themselves)

Actual Behavior

Table of Content has left-to-right text direction

Additional Information

ToC is generated by xhtml2pdf
<div dir="rtl">
<pdf:toc/>
</div>

The issue should be probably fixed on their side:
xhtml2pdf/xhtml2pdf#664

Within this task we can update the library version and our tests as soon as the issue is fixed.

@seluianova seluianova added 🐛 bug Something isn't working ⛔ blocked Blocked by external dependency labels Jan 23, 2023
@seluianova seluianova added this to the Backlog milestone Jan 23, 2023
@timobrembeck timobrembeck added ⁉️ prio: low Not urgent, can be resolved in the distant future. ☺️ effort: low Should be doable in <4h labels Jan 23, 2023
@timobrembeck timobrembeck mentioned this issue Jan 23, 2023
33 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working ⁉️ prio: low Not urgent, can be resolved in the distant future. ⛔ blocked Blocked by external dependency ☺️ effort: low Should be doable in <4h
Projects
None yet
Development

No branches or pull requests

2 participants