Creates a new image instance from RTF text.
Namespace: Spire.Pdf.GraphicsAssembly: 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 )
<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 ) 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 )
[<ObsoleteAttribute("This method may be removed in the future,not support rtf.")>] static member FromRtf : rtf : string * width : float32 * height : float32 * type : PdfImageType -> 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.
Return Value
PdfImagePdfImage containing RTF text.