I'm using iTextSharp v5.5.3.
This is my code:
/
FontFactory.RegisterDirectory(Environment.GetFolderPath(Environment.SpecialFolder.Fonts));
iTextSharp.text.Font font = FontFactory.GetFont("Tahoma",
BaseFont.IDENTITY_H, 15f, iTextSharp.text.Font.NORMAL, new BaseColor(0, 0,
0));
using (Document doc = new Document(PageSize.A4))
{
PdfWriter writer = PdfWriter.GetInstance(doc, new
FileStream("C:\\!\\sample.pdf", FileMode.Create));
doc.Open();
PdfContentByte content = writer.DirectContent;
ColumnText coltrtl = new ColumnText(content);
coltrtl.SetSimpleColumn(doc.Left, doc.Bottom, doc.Right,
doc.Top);
coltrtl.RunDirection = PdfWriter.RUN_DIRECTION_RTL;
Paragraph par = new Paragraph("المُجمَّعة", font);
coltrtl.AddElement(par);
coltrtl.Go();
doc.Close();
}/
The result is:
<http://itext-general.2136553.n4.nabble.com/file/n4660462/voc3.png>
Which is wrong. The result should be:
<http://itext-general.2136553.n4.nabble.com/file/n4660462/voc4.png>
Changing the used font or the PDF reader will not solve the problem.
--
View this message in context:
http://itext-general.2136553.n4.nabble.com/Wrong-Arabic-vocalization-placement-tp4660462.html
Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Comprehensive Server Monitoring with Site24x7.
Monitor 10 servers for $9/Month.
Get alerted through email, SMS, voice calls or mobile push notifications.
Take corrective actions from your mobile device.
http://p.sf.net/sfu/Zoho
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php