

Table.AddCell(new PdfPCell(new Phrase(item.QantitéEmballage.ToString("N3"), ReportDesigner.farabicNormal))) Table.AddCell(new PdfPCell(new Phrase(ésignation, ReportDesigner.farabicNormal))) Table.AddCell(new PdfPCell(new Phrase(item.Quantité.ToString("N3"), ReportDesigner.farabicNormal))) PdfPTable table = new PdfPTable(5) ) įoreach (OrderDetailsEntity item in Order.Details) PdfWriter writer = PdfWriter.GetInstance(document, new FileStream(FileName+ ".pdf", FileMode.Create)) `Document document = new Document(PageSize.A4) farabicBold = new (basefontArabic, 12, ) farabicNormal = new (basefontArabic, 10, ) Here is an example to create an Order in Arabic is the same for Urdu BaseFont basefontArabic = BaseFont.CreateFont("c:\\\\windows\\\\fonts\\\\TIMES.ttf", BaseFont.IDENTITY_H, true) To write in Arabic I use the following font: Update: Setting cell.ArabicOptions = ColumnText.DIGITS_EN2AN does render font in my desired font but does not any other text. PdfPCell cell = new PdfPCell(new Phrase(10, str, el.Font)) Table.RunDirection = PdfWriter.RUN_DIRECTION_RTL string fontpath = Environment.GetEnvironmentVariable("SystemRoot") + "\\fonts\\times.ttf" īaseFont basefont = BaseFont.CreateFont(fontpath, BaseFont.IDENTITY_H, BaseFont.EMBEDDED)

String fontpath = Environment.GetEnvironmentVariable("SystemRoot") + "\\fonts\\Jameel Noori Nastaleeq.ttf" PdfWriter writer = PdfWriter.GetInstance(document, new System.IO.FileStream("C:\\iTextSharpHelloworld.pdf", System.IO.FileMode.Create)) It shows text when I use built-in forms like times.ttf etc.Ĭode is given below: private void button1_Click(object sender, EventArgs e) It does not store any personal data.I am using custom Urdu Font Jameel Noori Nastaleeq with iTextSharp but it is not showing text at all. The cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. The cookie is used to store the user consent for the cookies in the category "Performance". This cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other. The cookies is used to store the user consent for the cookies in the category "Necessary". The cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional". The cookie is used to store the user consent for the cookies in the category "Analytics". These cookies ensure basic functionalities and security features of the website, anonymously.


Necessary cookies are absolutely essential for the website to function properly.
