The following example adds two blocks of styled text to a document.
The first block is in 96.5 point type and the second is in 192.5
point type.
[C#]
Doc theDoc = new Doc();
theDoc.TextStyle.Size = 96.5;
theDoc.AddText("Small ");
theDoc.TextStyle.Size = 192.5;
theDoc.AddText("Big");
theDoc.Save(Server.MapPath("stylesize.pdf"));
theDoc.Clear();
[Visual Basic]
Dim theDoc As Doc = New Doc()
theDoc.TextStyle.Size = 96.5
theDoc.AddText("Small ")
theDoc.TextStyle.Size = 192.5
theDoc.AddText("Big")
theDoc.Save(Server.MapPath("stylesize.pdf"))
theDoc.Clear()
stylesize.pdf
|