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

docfontsize.pdf
|