Questions tagged [rtf]

The Rich Text Format (often abbreviated RTF) is a proprietary document file format with published specification developed by Microsoft Corporation since 1987 for Microsoft products and for cross-platform document interchange.

Most word processors are able to read and write some versions of RTF. There are several different revisions of RTF specification and portability of files will depend on what version of RTF is being used. RTF specifications are changed and published with major Microsoft Word/Microsoft Office versions.

It should not be confused with enriched text (mimetype "text/enriched" of RFC 1896) or its predecessor Rich Text (mimetype "text/richtext" of RFC 1341 and 1521); nor with IBM's RFT-DCA (Revisable Format Text-Document Content Architecture) which are completely different specifications.

http://en.wikipedia.org/wiki/Rich_Text_Format

1809 questions
15
votes
2 answers

RTF linter wanted

Does anyone know of a linter for RTF files? I am writing an simple RTF export tool for a word processor. I've got to the stage where my generated files now load into OpenOffice and seem to work --- except I've just discovered that if I edit it from…
David Given
  • 13,277
  • 9
  • 76
  • 123
14
votes
1 answer

How to make some text bold in a rich text box in C#

I want to create a text editor where I can make text bold, change its color, etc. I found this code to approximately work: public static void BoldSelectedText(RichTextBox control) { control.SelectionFont = new Font(control.Font.FontFamily,…
chrs
  • 5,906
  • 10
  • 43
  • 74
14
votes
4 answers

C# .net converting HTML to RTF

Theres another post at HTML to RTF Converter for .NET, but are there any open source converters or tutorials? I don't want to use Sautinsoft. I think there is a solution at ExpertsExchange, but I have to pay for that. Most of the search results on…
qazqwerty555
  • 143
  • 1
  • 1
  • 6
13
votes
5 answers

fast way to copy formatting in excel

I have two bits of code. First a standard copy paste from cell A to cell B Sheets(sheet_).Cells(x, 1).Copy Destination:=Sheets("Output").Cells(startrow, 2) I can do almost the same using Sheets("Output").Cells(startrow, 2) =…
DevilWAH
  • 2,553
  • 13
  • 41
  • 57
13
votes
1 answer

Rtf to Html removes the html tables

I have the following code to convert rtf text to html: private string RtfToHtml(string rtf) { IRtfDocument rtfDocument = RtfInterpreterTool.BuildDoc(rtf); RtfHtmlConverter htmlConverter = new RtfHtmlConverter(rtfDocument); return…
TheLethalCoder
  • 6,668
  • 6
  • 34
  • 69
13
votes
6 answers

RTF Bullet List Example

It seems impossible to find a very simple working example for an RTF bullet list that looks like this: Hello World Nested (but with square as bullet please) Also nested (also square bullet) and regular again I tried to make a small sample by…
ckck
  • 231
  • 1
  • 2
  • 4
13
votes
6 answers

Apple Script : How can I copy html content to the clipboard?

I know how to copy plain text to the clipboard: oascript -e 'set the clipboard to "plain text"' But the question is how can I copy html contents to the clipboard? For example, how can I copy the following html content to the clipboard: bold…
K J
  • 4,505
  • 6
  • 27
  • 45
12
votes
1 answer

How to display .rtf file inside TextView?

my app needs to display custom text saved in a bunch of .rtf files inside a TextView. I have searched in different forums and i still don't have a clear solution. It seems pretty easy right? i have developed a few apps like this in iOS and i had no…
Victor Pinto
  • 177
  • 1
  • 9
12
votes
1 answer

Why is my license not showing up?

In my I have: LICENSE.rtf exists, and is an rtf file (I've tried saving with a few different programs in case it was a problem with one of them). The file contains text (a whole…
fredley
  • 32,953
  • 42
  • 145
  • 236
11
votes
2 answers

iOS Objective C: Display RTF document

I want to show a RTF document in a view. This document will be developed in Microsoft Word and will contains images. What is the best way to do this using standard routines provided? I would really like sample code to load a RTF document from the…
Jason TEPOORTEN
  • 431
  • 5
  • 10
11
votes
4 answers

RTF to Plain Text in Java

How do you convert an RTF string to plain text in Java? The obvious answer is to use Swing's RTFEditorKit, and that seems to be the common answer around the Internet. However the write method that claims to return plain text isn't actually…
edm3
  • 113
  • 1
  • 1
  • 4
11
votes
2 answers

Bug with adjusting RTF in Winforms when using Windows-wide beta UTF-8 support feature

I think I've found a bug in Windows or .NET and am looking for a workaround. To reproduce the problem, first enable the Windows feature "Beta: Use Unicode UTF-8 for worldwide language support". You may need to reboot the machine. Now simply create…
Dan W
  • 3,520
  • 7
  • 42
  • 69
11
votes
1 answer

Hyperlinks without underline in RichTextBox on Windows 10 1803

I'm displaying RTF document in RichTextBox ("upgraded" to RichEdit50W). Keywords in the document are linked to a webpage using a syntax: {\field{\*\fldinst{HYPERLINK ""https://www.example.com/"" }}{\fldrslt{\cf1 keyword\cf0 }}} I do not want to…
Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992
11
votes
4 answers

RTF Line separator

Does someone knows how to insert a horizontal line separator in a RTF file? Example: some text some other text
Martin Delille
  • 11,360
  • 15
  • 65
  • 132
11
votes
2 answers

Tridion - Insert HTML (literal and partial elements) in a RTF

I am trying to create a GUI extension in Tridion where I insert a specific html in to the RTF when a button is clicked.... I have the tool bar button and popup to inform the user. But when I click OK on popup when I insert the HTML "
Ram Gandhapuneni
  • 566
  • 3
  • 17