Click or drag to resize

PdfFontMeasureString Method

Measures the specified string when drawn with this font.

Namespace: SautinSoft.Pdf.Content
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2026.7.1
Syntax
public PdfSize MeasureString(
	string text,
	bool kerning = true
)

Parameters

text  String
String to measure.
kerning  Boolean  (Optional)
Enable character kerning.

Return Value

PdfSize
Size in points.
Exceptions
ExceptionCondition
ArgumentNullExceptiontext cannot be .
See Also