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
22
votes
3 answers

How to convert RTF to Markdown on the UNIX/OSX command line similar to pandoc

How do I convert RTF (say from stdin) to Markdown with a command line tool under UNIX/OSX. I am looking for something like pandoc. However pandoc itself does not allow RTF as an input format. :-( So, I'd be happy either with a similar tool to pandoc…
halloleo
  • 9,216
  • 13
  • 64
  • 122
22
votes
4 answers

Paste without rich text formatting into EditText

If I copy/paste text from Chrome for Android into my EditText view it gets messed up, apparently due to rich text formatting. Is there a way to tell the EditText view to ignore rich text formatting? Or can I catch the paste event and remove it…
Erik
  • 834
  • 8
  • 17
20
votes
4 answers

Eclipse copy code with syntax highlighting

I'm writing a document of programming guidelines for my developers team. I use MS Word. We work with Eclipse CDT (C++). I need to copy-paste C++ code with syntax highlighting from Eclipse to Word. I've tried Notepad++ and it can export text with…
Alessandro Pezzato
  • 8,603
  • 5
  • 45
  • 63
20
votes
2 answers

Using Tables in RTF

I need to create a table in an RTF file. However I am not familiar with RΤF. Here is an example of a text file that these RTF files are supposed to replace: GENERAL JOURNAL …
ctype.h
  • 1,470
  • 4
  • 20
  • 34
20
votes
4 answers

Using TRichEdit at runtime without defining a parent

I need to use a TRichEdit at runtime to perform the rtf to text conversion as discussed here. I succeded in doing this but I had to set a dummy form as parent if not I cannot populate the TRichedit.Lines. (Error: parent is missing). I paste my…
UnDiUdin
  • 14,924
  • 39
  • 151
  • 249
20
votes
10 answers

Reset RTF formatting in a WinForms RichTextBox without discarding its text?

I'm trying to "reset" the formatting in my RichTextBox (WinForms, not WPF). I was previously using richTextBox.Text = richTextBox.Text; However, that seems to have suddenly failed me. Now no matter what I set richTextBox.Text to, it retains some…
NickAldwin
  • 11,584
  • 12
  • 52
  • 67
19
votes
2 answers

Richtextbox draw an rtf line

I want to add a horizontal line to the RichTextBox as a delimiter of my text. I've found some examples of RTF code implementing a line and tried them in that way: rtbResFile.Rtf = @"{\rtf1{\pard some text.\par}{\pard \brdrb \brdrs \brdrw10 \brsp20…
zooz
  • 467
  • 5
  • 11
19
votes
3 answers

Get plain text from an RTF text

I have on my database a column that holds text in RTF format. How can I get only the plain text of it, using C#? Thanks :D
rpf
  • 3,612
  • 10
  • 38
  • 47
18
votes
3 answers

HTML+CSS to RTF (in PHP)?

I am seeking a solution to converting HTML + CSS (2.1) to RTF in PHP. While I have found a superb solution for HTML to PDF in Prince XML, I've yet to find anything that: can convert HTML to RTF (or DOC); runs on a Linux server; is callable from…
cletus
  • 616,129
  • 168
  • 910
  • 942
17
votes
5 answers

Linux: Command Line Utility Convert RTF to PDF?

Any recommendations to convert an RTF to a PDF? I need to do this from my LAMP application, so a command line utility like GhostScript would be ideal.
StackOverflowNewbie
  • 39,403
  • 111
  • 277
  • 441
17
votes
3 answers

Read (and write) RTF files with C++ / Qt

I am looking for a simple C++ library for tokenizing and parsing RTF (Rich Text Format) files. I am planning to edit them with Qt's QTextEdit. More the Formatting preserved the better -- but actually I am planning to use Bold and Italics only. In…
user38075
  • 179
  • 1
  • 1
  • 3
16
votes
7 answers

Is it possible to display an RTF file inside a web page using PHP?

I have an RTF file that I want to display inside a web page after tags have been replaced with user input. I would like to be able to display the RTF file without having to convert it to something before displaying it. Every time I try it now it…
Mark
  • 1,368
  • 5
  • 13
  • 26
16
votes
8 answers

How to convert a string to RTF in C#?

Question How do I convert the string "Européen" to the RTF-formatted string "Europ\'e9en"? [TestMethod] public void Convert_A_Word_To_Rtf() { // Arrange string word = "Européen"; string expected = "Europ\'e9en"; string actual =…
Lernkurve
  • 20,203
  • 28
  • 86
  • 118
16
votes
3 answers

HTML to RTF string using Python

I am looking for a way to convert HTML text to RTF string. Is there any libraries that does this job. I get html content dynamically in my project and need it to be rendered in RTF format. I am using HTML parser to convert HTML text to normal string…
Vikas Ramaneti
  • 177
  • 1
  • 4
16
votes
6 answers

How to reduce size of RTF with embedded images?

We have some code which produces an RTF document from a RTF template. It is basically doing string search and replaces of special tags within the RTF file. This is accessible via a web page. Typically, the processing time for this is really quick.…
A_M
  • 7,693
  • 6
  • 33
  • 37