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

Parsing RTF Documents with Java/JavaCC

Is anybody familiar with the the RTF document format and parsing using any Java libaries. The standard way people have done this is by using the RTFEditorKit in the JDK Swing API: Swing RTFEditorKit API but it isn't that accurate when it comes to…
Jonathan Holloway
  • 62,090
  • 32
  • 125
  • 150
8
votes
2 answers

How do i convert Xaml to Rtf in silverlight?

I would like to know how to convert Xaml to Rtf in silverlight. I am working on RichTextBox and i have the Xaml in hand and i would like to convert it to rtf and save it to the DB. so how do I convert Xaml to Rtf in Silverlight? (TextRange doesn't…
user677607
8
votes
13 answers

HTML or RTF to display columns of text with color-coded words

In my Delphi program I want to display some information generated by the application. Nothing fancy, just 2 columns of text with parts of words color-coded. I think I basically have two options: HTML in a TWebbrowser RTF in a TRichEdit. HTML is…
stevenvh
  • 2,971
  • 9
  • 41
  • 54
8
votes
5 answers

How to convert HTML ==> RTF in Java?

The basic API of JAVA that uses RTFEditorKit and HTMLEditorKit, is not able of recognize tags like
and . So I have searched on internet a better way of converting HTML to RTF and i have found two solutions that seem to…
Leandro
  • 101
  • 1
  • 3
  • 7
8
votes
2 answers

Delphi: best way to convert rtf to text

I need to convert rtf to plain text. i used to write a function that strips away rtf headers but it is never perfect. So one option can be using a TRichEdit created at runtime (something like described here but done of course at runtime). But is…
UnDiUdin
  • 14,924
  • 39
  • 151
  • 249
8
votes
1 answer

Convert the RTF to PDF using JAVA which reads the tables in rtf document

What ways are there to convert an RTF to PDF that contains a table in the document in Windows or Unix using Java? The option we have tried here are: ITEXT - But the table inside the rtf document is not coming properly once converted to PDF. In…
Kiranaditya
  • 449
  • 1
  • 5
  • 15
8
votes
3 answers

How can you convert RTF text to Markdown-syntaxed plain text in Cocoa?

I need to be able to convert RTF or HTML to Markdown-syntaxed plain text for uploading to my server. I need to achieve this in Cocoa/Obj-C 2.0. Does anyone know how to do this? Thanks so much —» Alex. Edited Thu 4:53 PM Umm. In answer to Yuji's…
Alexsander Akers
  • 15,967
  • 12
  • 58
  • 83
8
votes
2 answers

What's a good way to process RTF-encoded files and convert them to XML?

I have never done huge amounts of RTF processing, I always used a library to read or generate one and that was a long time ago. Now I need to get more intimate with the format again, and eventually convert it to XML. Can you recommend a good path to…
user27767
  • 81
  • 1
8
votes
1 answer

Broken hyperlinks in RTF file in RichTextBox

I'm using a RichTextBox to display an RTF file, which includes a single hyperlink. The link text is not a URL (the target is a valid URL). The RTF was created with Word. Both Word and WordPad properly recognize the links (WordPad does not launch the…
snarf
  • 2,684
  • 1
  • 23
  • 26
8
votes
3 answers

Extract Embedded Image Object in RTF

I have rtf documents that include an embedded object (an image). I need to extract this as an Image object (or any other usable format). I have checked out this CodeProject article but the default apps don't render it correctly (They render the…
8
votes
2 answers

Rich Text Format Tags for Hiding and Un-hiding

I would like to hide part of the text in my RichTextBox. I know that \v is the start of a hiding section. But how do I unhide ? For example if I want to hide the word "big" in the string "hello big world" so that "hello world" is visible: text …
Bitterblue
  • 13,162
  • 17
  • 86
  • 124
8
votes
2 answers

Notepad++ Rtf Editing plugin

Is there a plug-in for Notepad++ that does rtf highlighting? To clarify, I mean when one opens an rtf file as plain text, is there a plugin that highlights rtf statements (like "{\rtf...}", "{\colortbl...}", and etc.) like it does with c++, c#,…
BrainStorm.exe
  • 1,565
  • 3
  • 23
  • 40
8
votes
3 answers

How to Convert Simple RichText to HTML tags in Delphi?

You may say that there are lots of discussions about this in stackOverflow, but most of them are more complicated than what I need and mostly for other languages. I have a MySQL remote database in which I have a "Help" table with the code for…
NaN
  • 8,596
  • 20
  • 79
  • 153
7
votes
8 answers

Merge RTF files

I have a set of RTF's stored in strings in C# is their a way to merge these into one document for printing as the user wants to print them as one document with the print settings appearing once. I can use office interop if necessary, obviously…
PeteT
  • 18,754
  • 26
  • 95
  • 132
7
votes
1 answer

Is the Rich Text Format deprecated?

From the Wikipedia page on Rich Text Format (http://en.wikipedia.org/wiki/Rich_Text_Format): As of March 2008, the current version is 1.9.1. According to Microsoft's Office 2010 resource kit documentation, Microsoft is discontinuing enhancements…
Brett
  • 4,066
  • 8
  • 36
  • 50