Click or drag to resize

PdfImage FromRtf Method (String, Single, Single, PdfImageType, PdfStringFormat)

Note: This API is now obsolete.

Creates a new image instance from RTF text.

Namespace: Spire.Pdf.Graphics
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 11.3.7.0 (11.3.7.1046)
Syntax
[ObsoleteAttribute("This method may be removed in the future,not support rtf.")]
public static PdfImage FromRtf(
	string rtf,
	float width,
	float height,
	PdfImageType type,
	PdfStringFormat format
)

Parameters

rtf
Type: System String
RTF text data.
width
Type: System Single
Width of the image in points.
height
Type: System Single
Height of the image in points.
type
Type: Spire.Pdf.Graphics PdfImageType
Type of the image that should be created.
format
Type: Spire.Pdf.Graphics PdfStringFormat
The text string format.

Return Value

Type: PdfImage
PdfImage containing RTF text.
See Also