PdfTextDrawingOptions.MissingGlyphHandler Property

Gets or sets the handler for glyphs that cannot be drawn using the current Font.

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

Syntax

C#
public PdfMissingGlyphMapper MissingGlyphHandler { get; set; }
VB
Public Property MissingGlyphHandler As PdfMissingGlyphMapper
	Get
	Set

Property Value

Type: PdfMissingGlyphMapper
The handler to substitute text for glyphs that cannot be drawn. When the value is null then CannotShowTextException will be thrown for missing glyphs.

Remarks

Default value: null.

You can use the following handler to substitute missing glyphs with a fixed text ("?" in this example):

(glyphText) => "?";

Use the following handler to skip glyphs that cannot be drawn:

(glyphText) => null;

See Also