using var doc = new Doc();
string text = "Gallia est omnis divisa in partes tres, quarum unam incolunt Belgae, aliam Aquitani, tertiam qui ipsorum lingua Celtae, nostra Galli appellantur. Hi omnes lingua, institutis, legibus inter se differunt.";
text = text + text;
text = text + "\r\n" + text + "\r\n";
text = text + text + text + text;
doc.Rect.Inset(20, 40);
doc.TextStyle.Size = 16;
doc.TextStyle.ParaSpacing = 16;
doc.TextStyle.Indent = 48;
doc.AddText(text);
doc.Save(Server.MapPath("styleindent.pdf"));
Using doc As 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. Hi omnes lingua, institutis, legibus inter se differunt."
theText = theText + theText
theText = theText + vbCr & vbLf + theText + vbCr & vbLf
theText = theText + theText + theText + theText
doc.Rect.Inset(20, 40)
doc.TextStyle.Size = 16
doc.TextStyle.ParaSpacing = 16
doc.TextStyle.Indent = 48
doc.AddText(theText)
doc.Save(Server.MapPath("styleindent.pdf"))
End Using