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
7
votes
2 answers

Loading embedded resource .rtf file into richtextbox on load C#

Ok so I read about loading an embedded rtf into a rich text box and I am trying to do it when the form loads. The form is not the main form, it is a second form that loads when a control is clicked. This is what I have on the form when it…
BrandNewDev
  • 755
  • 2
  • 9
  • 16
7
votes
3 answers

Invoking Word for rtf to docx conversion

I have a need to routinely programmatically convert *.rtf files into *.docx. Manually, this works just fine with Save As inside Word 2007 ... the resulting docx behaves just fine. Programmatically, I can't get it to work. What I tried is…
GregA
  • 91
  • 1
  • 1
  • 5
7
votes
3 answers

iText add new page

How can you add a new page to an iText document? document.newPage(); doesn't seem to work. I am using iText with RTF support from http://sourceforge.net/projects/itextrtf/ Part of my code: Font titleFont = new Font(Font.COURIER, 14,…
Thizzer
  • 16,153
  • 28
  • 98
  • 139
7
votes
1 answer

how to read bullets from RTF file

I have a rtf file which has some text with bullets as shown in the screenshot below I want to extract the data along with the bullets but when I print in the console, I get junk values. How do I print exactly the same from console. The way I tried…
rocking
  • 4,729
  • 9
  • 30
  • 45
7
votes
2 answers

How to use a stack to parse a string

I have a String: String stringContent="{\\*\\listtable{\\list{\\listlevel{\\leveltext}{\\levelNumber}}}}" How do I select values of all enclosing braces one by one in each pass like…
Identity1
  • 1,139
  • 16
  • 33
7
votes
4 answers

How can I convert an .rtf or .doc document to LaTeX?

Unfortunately, I can't use rtf2latex2e because it says that DropUNIX "no longer supports the classic environment". I barely know what I'm doing otherwise, besides dropping my .rtf file onto the DropUNIX program. What else can I use? I don't mind…
Laura
  • 81
  • 1
  • 3
7
votes
4 answers

How to convert HTML to RTF using JavaScript

I have an input HTML file with header and footer. It needs to be converted to RTF. The header/footer of HTML should be repeated in the resultant RTF file. Is there any plugin to convert HTML to RTF by only using JavaScript??
Gireesh SB
  • 106
  • 1
  • 1
  • 8
7
votes
2 answers

How to generate RTFs with PHP

I need to generate an RTF from within PHP. I've seen several libraries out there but wondering if anyone has used any of them or if they've just hand coded their own (which I'm perfectly able to do). Any opinions out there? TIA
Scott
  • 695
  • 1
  • 8
  • 16
7
votes
3 answers

RTF to Wiki Converter?

I would like to convert 100+ RTF files to Wiki Markup, but I can only find "Wiki to RTF" converters on the web and even here on StackOverflow. I only need RTF --> Wiki Markup Is there anything like this out there?
hfrmobile
  • 1,213
  • 16
  • 16
7
votes
1 answer

Retaining font size when loading/saving RTF in WPF

Consider the following RTF document {\rtf1\ansi\ansicpg1252\deff0\deflang1031{\fonttbl{\f0\fswiss\fprq2\fcharset0 Segoe UI;}{\f1\fswiss\fcharset0 Arial;}} {\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\f0\fs22 Sample Text\f1\fs20\par } It…
Sven Künzler
  • 1,650
  • 1
  • 20
  • 22
6
votes
6 answers

How do I display a formatted (colour, style etc) log in Delphi?

I need to display a formatted log in Delphi 2009. The formatting does not have to implement all the features of say html, but a small subset e.g. colour, font style etc. Currently I am using a TRichEdit and my own proprietry tags e.g. this is blue.…
norgepaul
  • 6,013
  • 4
  • 43
  • 76
6
votes
3 answers

RTF number of pages Page x of y

Not sure if this is even possible but I am trying to save text via a plain text output to an RTF with special coding. I have everything working except the total number of pages. I want it to say "Page x of y", the bottom of each page to say…
Opy
  • 2,119
  • 3
  • 18
  • 22
6
votes
2 answers

Load an RTF file from resources to a RichTextBox in a WPF application

I am trying to load the content of an RTF file, which I have put inside resources (through Project->Properties->Resources->Add File). I want to load Agreement.rtf's content to a RichTextBox and I have tried the following: Dim stream As Stream stream…
user1035909
  • 83
  • 2
  • 7
6
votes
1 answer

How to make a function to extract the new rich text links in Google Sheets while referencing specific ranges?

Some time ago, Google Sheets changed the adding of links to rich text, and now links cannot be found at the formula anymore. Personally I dislike this change very much because I use a custom function that extracts hyperlinks from cells with the old…
6
votes
3 answers

What is the best solution for converting RichTextFormat info to HTML in C#?

What is the best solution for converting RichTextFormat info to HTML in C#? I know there are libraries out there that do this, and I was curious to see if you guys had any advice as to which ones are the better ones. Thanks, Jeff
Yttrium
  • 2,057
  • 7
  • 25
  • 28