PDF .NET Library Logo

How to use the Tab, Carriage Return - Line Feed characters in PDF

The following code sample uses the AddText method with special characters.

C# sample:


PDFDocument MyPDF = new PDFDocument("SpecialChcracters.pdf");

MyPDF.CurrentPage.Body.SetActiveFont("Tahoma", PDFFontStyles.Regular, 12, Charset.Unicode);

MyPDF.CurrentPage.Body.AddText("\t First line with tab character.\r\nSecond line.");

MyPDF.Save();

Back to PDF Code Library