Creates a new image instance from RTF text.

Namespace: Spire.Pdf.Graphics
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 6.2.6.0 (6.2.6.2020)

Syntax

            
 C#  Visual Basic  Visual C++  F# 
[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
)
<ObsoleteAttribute("This method may be removed in the future,not support rtf.")> 
Public Shared Function FromRtf ( 
	rtf As String,
	width As Single,
	height As Single,
	type As PdfImageType,
	format As PdfStringFormat
) As PdfImage
public:
[ObsoleteAttribute(L"This method may be removed in the future,not support rtf.")]
static PdfImage^ FromRtf(
	String^ rtf, 
	float width, 
	float height, 
	PdfImageType type, 
	PdfStringFormat^ format
)
[<ObsoleteAttribute("This method may be removed in the future,not support rtf.")>]
static member FromRtf : 
        rtf : string * 
        width : float32 * 
        height : float32 * 
        type : PdfImageType * 
        format : PdfStringFormat -> PdfImage 

Parameters

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

Return Value

PdfImage
PdfImage containing RTF text.

See Also