void drawLine(int X1, int Y1, int X2, int Y2)

Draws a Line between two points defined by the coordinates X1/Y1 and X2/Y2. The line will be drawn with the pre-defined size of the property LineWidth.

Example:

1
2
3
4
5
6
7
8
9
10
11
12
13
// create new PDF_Writer object
PDF_Writer.Writer PDF = new PDF_Writer.Writer();
 
// set LineWidth to 4 points
PDF.LineWidth = 4;
 
// draw line between two points
// Start-Point: X=50 Y=150
// End-Point: X=200 Y=100
PDF.drawLine(50, 150, 200, 100);
 
// save PDF document to file system
PDF.save(@"C:\PDF_Writer\test.pdf");