Draws a string defined in the parameter Caption on the position defined by parameters X and Y. This method also takes values FontName and FontSize to be used for the drawing. Given values will overwrite the pre-defined properties with the same name:
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 and overwrite predefined values for FontName and FontSize PDF.drawRectangle("Sample Text", "Arial", 15, 50, 150); // save PDF document to file system PDF.save(@"C:\PDF_Writer\test.pdf"); |