using "Graphics Canvas" |
[Top] [Chapter] [Previous] [Next] |
PDFControl exportes metafiles to PDF.
The wrapper class PDFControl and RTF2PDF also includes a object 'Canvas' which inherits of the class 'Graphics'. This means you can use it with the graphics operations you would usually use in C# or VB.NET.
pdfControl2.StartPage(); pdfControl2.Canvas.DrawString("Hello World",this.Font,new SolidBrush(Color.Black),40, 50); pdfControl2.Canvas.DrawRectangle(new Pen(Color.Red, 1), 20,20,300,300); pdfControl2.EndPage(); |