Click or drag to resize

PdfCanvas DrawString Method (String, PdfFontBase, PdfPen, Single, Single, PdfStringFormat, Boolean)

Draws the specified text string at the specified location with the specified Brush and Font objects.

Namespace: Spire.Pdf.Graphics
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
public void DrawString(
	string s,
	PdfFontBase font,
	PdfPen pen,
	float x,
	float y,
	PdfStringFormat format,
	bool htmlTags
)

Parameters

s
Type: System String
The text string.
font
Type: Spire.Pdf.Graphics PdfFontBase
The font.
pen
Type: Spire.Pdf.Graphics PdfPen
The pen.
x
Type: System Single
The x.
y
Type: System Single
The y.
format
Type: Spire.Pdf.Graphics PdfStringFormat
The text string format.
htmlTags
Type: System Boolean
whether the parsing of HTML tags
See Also