Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4   11.5    Statistic    FMM    Blog  

Text.RTFToText

Parses RTF to styled text.

Component Version macOS Windows Linux Server iOS SDK
Text 11.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Text.RTFToText"; RTFData )   More

Parameters

Parameter Description Example
RTFData The RTF data text.

Result

Returns styled text or error.

Description

Parses RTF to styled text.
Should find texts, font name/size, some styles like italic/bold/underline and color.

We read the input with Windows ANSI encoding to get characters right for RTF files from Windows without encoding specs, so if you read it from a file with Text.ReadTextFile, please specify "Windows" as encoding to use.

Examples

Convert RTF in a field to styled text in a new field

Set Field [ test::StypedText ; MBS( "Text.RTFToText"; test::RTFText ) ]

See also

Release notes

Example Databases

Blog Entries

Created 19th May 2021, last changed 21st May 2021


Text.MimeTypeToFileExtension - Text.ReadEMLXFile

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins

Start Chat