opensagres / xdocreport

XDocReport means XML Document reporting. It's Java API to merge XML document created with MS Office (docx) or OpenOffice (odt), LibreOffice (odt) with a Java model to generate report and convert it if you need to another format (PDF, XHTML...).
https://github.com/opensagres/xdocreport
1.19k stars 369 forks source link

RTL support when using Apache POI with openPdf #538

Open Jaspreet96 opened 2 years ago

Jaspreet96 commented 2 years ago

I am using Apache POI with OpenPdf to convert docx(with arabic text) to a pdf. However, in the pdf being generated the characters are printed in the direction left to right instead of Right to Left. Refer the below two images:

Image 1 : Original doc Image 2: Pdf rendered pdf

angelozerr commented 2 years ago

Any contribution are welcome!