Skip to content

Add RTL layout support for PDF exports#22657

Open
alghanim wants to merge 1 commit intoopf:devfrom
alghanim:feature/pdf-rtl-layout
Open

Add RTL layout support for PDF exports#22657
alghanim wants to merge 1 commit intoopf:devfrom
alghanim:feature/pdf-rtl-layout

Conversation

@alghanim
Copy link
Copy Markdown

@alghanim alghanim commented Apr 2, 2026

Summary

Make all PDF exporters RTL-aware for Arabic, Hebrew, and Farsi locales:

  • Add rtl?, align_start, align_end helpers to PDF common module
  • Mirror page title and headings alignment
  • Swap footer date/page number positions
  • Mirror logo positioning
  • Right-align table cells, group headers, attribute labels, markdown labels
  • Swap TOC page numbers and level strings for RTL
  • Apply Arabic shaping to cover page hero text

Depends on: PDF Arabic shaping PR (for Exports::PDF::Common::ArabicShaping)

Test plan

  • Arabic PDF report — cover page title correct
  • TOC page numbers on left, level strings on right
  • Attribute labels right-aligned
  • Table cells right-aligned
  • Footer: date on right, page number on left
  • Logo mirrors position
  • English PDFs remain unaffected

Make PDF exporters RTL-aware for Arabic/Hebrew/Farsi locales:
- Add rtl?, align_start, align_end helpers
- Mirror page title, footer, and logo positioning
- Right-align table cells, group headers, and attribute labels
- Swap TOC page number and level string alignment
- Apply Arabic shaping to cover page hero text

Depends on: feature/pdf-arabic-shaping (for ArabicShaping module)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant