arabic languge in pdf itextsharp not working RRS feed

  • Question

  • Dim Doc1 As Object = New Document()
        Dim Path As String
        Dim fontpath As String = "C:\Windows\Fonts"
        Dim customfont As BaseFont = BaseFont.CreateFont(fontpath & "/Arial.ttf", BaseFont.IDENTITY_H, BaseFont.EMBEDDED)
        Dim Myfont As Font = New Font(customfont, 12)
            Path = "C:\Users\LENOVO\Desktop\docs"
            PdfWriter.GetInstance(Doc1, New FileStream(Path + "\Doc1.pdf", FileMode.Create))
        Doc1.Add(New Paragraph(" ملف جديد", Myfont))

    i'm trying to create pdf using mix from Arabic and English but is not working , the Arabic characters is being unattached and starts from left

    • Edited by MrDamascus Thursday, January 30, 2020 8:44 AM
    • Moved by Alex-KSGZ Friday, January 31, 2020 1:46 AM
    Thursday, January 30, 2020 8:38 AM

All replies

  • I would suggest asking in this forum http://itextsharp.10939.n7.nabble.com/ which is for ITextSharp

    Please remember to mark the replies as answers if they help and unmarked them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.

    NuGet BaseConnectionLibrary for database connections.

    profile for Karen Payne on Stack Exchange

    Thursday, January 30, 2020 10:31 AM