void drawString(String Caption, int X, int Y)

Draws a string defined in the parameter Caption on the position defined by parameters X and Y. The method will use the pre-defined values from the properties FontName and FontSize.

Example:

1
2
3
4
5
6
7
8
9
10
11
12
// create new PDF_Writer object
PDF_Writer.Writer PDF = new PDF_Writer.Writer();
 
// pre-define font name and size
PDF.FontName = "Helvetica";
PDF.FontSize = 12;
 
// draw sample text
PDF.drawRectangle("Sample Text", 50, 150);
 
// save PDF document to file system
PDF.save(@"C:\PDF_Writer\test.pdf");