PdfCanvas.DrawString Method (IEnumerable(PdfCharacterCode))

Draws the text defined by the specified character codes starting from the current TextPosition.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public void DrawString(
	IEnumerable<PdfCharacterCode> characterCodes
)
VB
Public Sub DrawString ( 
	characterCodes As IEnumerable(Of PdfCharacterCode)
)

Parameters

characterCodes
Type: System.Collections.Generic.IEnumerable<PdfCharacterCode>
The character codes for the text.

Remarks

This method ignores the current Font value of the canvas. For each character code, there is the Font property. The method uses those fonts to draw text.

Character codes are part of raw PDF strings. Each string is for a particular font. Use the GetCharCodes() method to get character codes for existing text.

The string defined by the characterCodes parameter always spans only one line.

See Also