In this example we add two blocks of text to a document. The first
is added with no justification and the second is added with a justification
factor of one.
[C#]
Doc theDoc = new Doc();
string theText = "Gallia est omnis divisa in partes tres, quarum
unam incolunt Belgae, aliam Aquitani, tertiam qui ipsorum lingua
Celtae, nostra Galli appellantur.";
theDoc.Rect.Inset(20, 40);
theDoc.TextStyle.Size = 48;
theDoc.AddText(theText);
theDoc.Rect.Move(0, -350);
theDoc.TextStyle.Justification = 1.0;
theDoc.AddText(theText);
theDoc.Save(Server.MapPath("stylejustification.pdf"));
theDoc.Clear();
[Visual Basic]
Dim theDoc As Doc = New Doc()
Dim theText As String = "Gallia est omnis divisa in partes
tres, quarum unam incolunt Belgae, aliam Aquitani, tertiam qui ipsorum
lingua Celtae, nostra Galli appellantur."
theDoc.Rect.Inset(20, 40)
theDoc.TextStyle.Size = 48
theDoc.AddText(theText)
theDoc.Rect.Move(0, -350)
theDoc.TextStyle.Justification = 1.0
theDoc.AddText(theText)
theDoc.Save(Server.MapPath("stylejustification.pdf"))
theDoc.Clear()
stylejustification.pdf
|
|
|