The following code creates a PDF document with a red
background.
[C#]
using (Doc doc = new Doc()) {
doc.Color.String = "255 0 0";
doc.FillRect();
doc.Save(Server.MapPath("doccolor.pdf"));
}
[Visual Basic]
Using doc As New Doc()
doc.Color.String = "255 0 0"
doc.FillRect()
doc.Save(Server.MapPath("doccolor.pdf"))
End Using

doccolor.pdf
|