Printing with Arabic or Hebrew text – right to left RTL
Important Note: Blocks of type textline are supported, textflow blocks are NOT supported.
To print Arabic or Hebrew text, the fonts must be loaded with the unicode encoding. To do that in a textline block add an optlist command with the value:
encoding=unicode
For the other settings, open the block property window in PDF Actobat with the PDFlib plugin.
Go to Text Preparation section:
- Set script to either arab or hebr
- Set shaping to true
- Add any preferred features like liga
In the text preparation section of the block file set;
script Arab
shaping true
Note: this will only work with textline not textflow (paragraphs)
Unfortunately we only know of it working with Arial font.
Below is from the PDFLib Tutorial
Shaping.
Scripts which require one or more of these processing steps are called complex
scripts. The process of preparing incoming logical text for proper presentation is
called shaping (this term also includes reordering and Bidi processing). The user always
supplies text in unshaped form and in logical order, while PDFlib performs the necessary
shaping before producing PDF output.
Complex script shaping can be enabled with the shaping text option, which in turn
requires the script option and optionally allows the language option.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article