PDF .NET Library Logo
Home Products Code Library Online Demos Support Forum Buy About Us  
Code Library

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