PdfFont.TextFitToWidth Method

PDF File Writer

PdfFontTextFitToWidth Method

Word spacing to stretch text to given width

Namespace:  PdfFileWriter
Assembly:  PdfFileWriter (in PdfFileWriter.dll) Version: 1.1.24.0 (1.1.24.0)
Syntax
C#
public bool TextFitToWidth(
	double FontSize,
	double ReqWidth,
	out double WordSpacing,
	out double CharSpacing,
	string Text
)

Parameters

FontSize
Type: SystemDouble
Font size
ReqWidth
Type: SystemDouble
Required width
WordSpacing
Type: SystemDouble
Output word spacing
CharSpacing
Type: SystemDouble
Output character spacing
Text
Type: SystemString
Text

Return Value

Type: Boolean
True-done, False-not done.
See Also