The following code creates a PDF document with a red background.
[C#]
Doc theDoc = new Doc();
theDoc.Color.String = "255 0 0";
theDoc.FillRect();
theDoc.Save(Server.MapPath("doccolor.pdf"));
theDoc.Clear();
[Visual Basic]
Dim theDoc As Doc = New Doc()
theDoc.Color.String = "255 0 0"
theDoc.FillRect()
theDoc.Save(Server.MapPath("doccolor.pdf"))
theDoc.Clear()
doccolor.pdf
|