Table of Contents

Class PdfCanvasConstants.TextRenderingMode

Namespace
iText.Kernel.Pdf.Canvas
Assembly
itext.kernel.dll

The text rendering mode determines whether showing text causes glyph outlines to be stroked, filled, used as a clipping boundary, or some combination of the three.

public sealed class PdfCanvasConstants.TextRenderingMode
Inheritance
PdfCanvasConstants.TextRenderingMode
Inherited Members

Remarks

The text rendering mode determines whether showing text causes glyph outlines to be stroked, filled, used as a clipping boundary, or some combination of the three. Stroking, filling, and clipping have the same effects for a text object as they do for a path object, although they are specified in an entirely different way. If the text rendering mode calls for filling, the current nonstroking color in the graphics state is used; if it calls for stroking, the current stroking color is used. All documentation for this class is taken from ISO 32000-1, section 9.3.6 "Text Rendering Mode".

Fields

CLIP

Add text to path for clipping

public const int CLIP = 7

Field Value

int

FILL

Fill text

public const int FILL = 0

Field Value

int

FILL_CLIP

Fill text and add to path for clipping

public const int FILL_CLIP = 4

Field Value

int

FILL_STROKE

Fill and stroke text

public const int FILL_STROKE = 2

Field Value

int

FILL_STROKE_CLIP

Fill, then stroke text and add to path for clipping

public const int FILL_STROKE_CLIP = 6

Field Value

int

INVISIBLE

Neither fill nor stroke, i.e. render invisibly

public const int INVISIBLE = 3

Field Value

int

STROKE

Stroke text, providing the outline of the glyphs

public const int STROKE = 1

Field Value

int

STROKE_CLIP

Stroke text and add to path for clipping

public const int STROKE_CLIP = 5

Field Value

int