We are generating pdf using apache's xsl fo engine, namely fop 0.95. We have been successful in displaying arabic text from xml to pdf. But there is some problem in the direction of the displayed words.
If we have 'sangam' (please assume that 'sangam' is in arabic) in xml, it gets displayed as 'magnas'. Has anyone encountered this before? What could be the solution?
For example, I have one node in xml file like this:
<empltmoblab>موبایل</empltmoblab>
Now when displayed in pdf, this is displayed like this:
لیابوم
This means I am getting just the reverse. I want it as it is in xml node.
Thank you.
Try to use this:
<fo:block-container writing-mode="rl-tb" font-family="ArabicTransparent" language="fa">
<fo:block>
علی کریمی (Farsi-right-to-left)
</fo:block>
</fo:block-container>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With