|
The following code creates a PDF document with text positioned
at a number of different points within it.
[C#]
Doc theDoc = new Doc();
theDoc.FontSize = 48;
for (int i = 1; i <= 8; i++) {
theDoc.Pos.X = i * 40;
theDoc.Pos.Y = i * 80;
theDoc.AddText("Pos = " + theDoc.Pos.String);
}
theDoc.Save(Server.MapPath("docpos.pdf"));
theDoc.Clear();
[Visual Basic]
Dim theDoc As Doc = New Doc()
theDoc.FontSize = 48
Dim i As Integer
For i = 1 To 8
theDoc.Pos.X = i * 40
theDoc.Pos.Y = i * 80
theDoc.AddText("Pos = " + theDoc.Pos.String)
Next
theDoc.Save(Server.MapPath("docpos.pdf"))
theDoc.Clear()

docpos.pdf
|