admin管理员组文章数量:1391982
We are using iText7 and itext7.pdfcalligraph to render the Kurdish characters. Some of the characters are not rendered as expected.
Code used:
Document arabicPdf = new Document(new PdfDocument(new PdfWriter("output.pdf")));
arabicPdf.SetBaseDirection(BaseDirection.RIGHT_TO_LEFT);
arabicPdf.SetFontScript(iText.Commons.Utils.UnicodeScript.ARABIC);
// Arabic text starts near the top right corner of the page
arabicPdf.SetTextAlignment(TextAlignment.RIGHT);
// create a font, and make it the default for the document
PdfFont f = PdfFontFactory.CreateFont(@"D:\Font\arial.ttf",
iText.IO.Font.PdfEncodings.IDENTITY_H);
arabicPdf.SetFont(f);
// add content: (as-salaamu ‘aleykum - peace be upon you)
arabicPdf.Add(new Paragraph("تۆماری نمرەی کارگێری وئەنجامی تاقیکردنەوە"));
arabicPdf.Close();
Current output:
Expected output:
Can anyone help me to resolve this problem.
本文标签: pdfiText7 Kurdish characters rendering issueStack Overflow
版权声明:本文标题:pdf - iText7: Kurdish characters rendering issue - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744651499a2617712.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论