0

iam using Opensagres XDocReport convert docx to pdf, the result i got is flipped arabic characters

instead of being

السلام عليكم

its showed as

image of actual result

Alfabravo
  • 7,493
  • 6
  • 46
  • 82
  • Could it be related to a left-to-right setting in the converter? – Alfabravo May 31 '18 at 02:43
  • @Alfabravo can you give hint how to make it right to left? – fadi aljabali May 31 '18 at 02:45
  • XDocReport is built on top of an old version of iText. iText didn't introduce full support for Arabic up until iText 7. See for instance [How to convert HTML containing Arabic/Hebrew characters to PDF?](https://developers.itextpdf.com/content/itext-7-converting-html-pdf-pdfhtml/chapter-7-frequently-asked-questions-about-pdfhtml/how-convert-html-containing-arabichebrew-characters-pdf) iText as such doesn't convert DOCX to PDF, only HTML to PDF. iText 7 is open source (AGPL), but the add-on with Arabic support is closed source. – Bruno Lowagie May 31 '18 at 09:44

1 Answers1

0

Looking into the library's issues, seems like this one is not yet solved :/

I would look into the code and how can you set properties for Apache POI (which is the one underneath) or for FOP (the PDF serializer). SOrry I can't help any further

Alfabravo
  • 7,493
  • 6
  • 46
  • 82