|
In this example we add three blocks of text to a document. The
first block uses the default spacing. The second block uses a positive
value to stretch out the text. The last block uses a negative value
to condense the text.
[C#]
Doc theDoc = new Doc();
theDoc.TextStyle.Size = 96;
theDoc.AddText("Zero CharSpacing");
theDoc.Rect.Move(0, -300);
theDoc.TextStyle.CharSpacing = 10;
theDoc.AddText("Positive CharSpacing");
theDoc.Rect.Move(0, -300);
theDoc.TextStyle.CharSpacing = -10;
theDoc.AddText("Negative CharSpacing");
theDoc.Save(Server.MapPath("stylecspace.pdf"));
theDoc.Clear();
[Visual Basic]
Dim theDoc As Doc = New Doc()
theDoc.TextStyle.Size = 96
theDoc.AddText("Zero CharSpacing")
theDoc.Rect.Move(0, -300)
theDoc.TextStyle.CharSpacing = 10
theDoc.AddText("Positive CharSpacing")
theDoc.Rect.Move(0, -300)
theDoc.TextStyle.CharSpacing = -10
theDoc.AddText("Negative CharSpacing")
theDoc.Save(Server.MapPath("stylecspace.pdf"))
theDoc.Clear()

stylecspace.pdf
|