PDF .NET Library Logo

Working with Arabic Characters

The code below creates a PDF document containing Arabic text.

C# sample:

PDFDocument doc = new PDFDocument("sample.pdf");

doc.CurrentPage.Body.SetActiveFont("Arial", PDFFontStyles.Regular, 12, Charset.Unicode);

doc.CurrentPage.Body.TextOut(0, 0, 0, "اتبانسع اتانضتاصت");

doc.Save();

Back to PDF Code Library