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

Java get plain Text from RTF

I have on my database a column that holds text in RTF format. How can I get only the plain text of it, using Java?
Programmer
  • 49
  • 1
  • 3
  • 8
4
votes
3 answers

Add table of contents to RTF document

I am trying to generate a RTF document by hand and eventually will do it programtically. I plan to improve pyRTF so that it can generate "Table of contents", which I think it can't. I am not able to use RTF controls words (\tc, \tcf and \tcl.) to…
Anurag Uniyal
  • 85,954
  • 40
  • 175
  • 219
4
votes
2 answers

Converting from rich text format to plain text problems

We currently have an application (Windows service) that connects to another of our applications and grabs invoices. In the invoices there is a RTF field for the footer/header fields. When we grab the data the RTF is converted to plain text with the…
Toby Holland
  • 1,029
  • 2
  • 14
  • 29
4
votes
1 answer

Java RTF import, edit and export possible?

I use Apache Tika to parse RTF files to get the plaintext as string. Now I want to remove some characters from this string -> ok. Now I want to save the result as RTF again. (You can think of this process as modifying an RTF file by deleting a…
4
votes
2 answers

How to convert Unicode characters to escape codes

So, I have a bunch of strings like this: {\b\cf12 よろてそ } . I'm thinking I could iterate over each character and replace any unicode (Edit: Anything where AscW(char) > 127 or < 0) with a unicode escape code (\u###). However, I'm not sure how to…
Brian
  • 25,523
  • 18
  • 82
  • 173
4
votes
1 answer

Meaning of an RTF faulty piece of code

I am working on an RTF file made by someone else on an unknown platform, and everything is interpreted correctly, except some characters, whatever character set I open them from in openoffice. Here is the plain text, after interpretation: "Même…
MrBrody
  • 301
  • 2
  • 13
3
votes
3 answers

Copying a (rtf) table into the clipboard via QT (or: Writing a QTextDocument into clipboard)

I need my QT application to create a table and copy this table into the clipboard, so that it can be pasted as table into libreoffice Writer or MS Word later. My first approach was to create html code for the table and insert it into the clipboard…
Heinzi
  • 5,793
  • 4
  • 40
  • 69
3
votes
1 answer

How to get text size and color from RTF file?

I have some text in RTF files. I need to extract the text but color and size must be extracted to my variables as well. How can it be done with any .NET tools or 3rd party lib's classes?
Jcf
  • 201
  • 2
  • 8
3
votes
1 answer

How do I center-align footers and headers in an RTF document viewed by Microsoft Word 2010?

I have an RTF file that I've written which has a single page with a header and a footer. I'm trying to get the header and footer be center-aligned. However, it seems like no matter what I do, the header and footer always appear to be left-aligned in…
Keith
  • 706
  • 5
  • 13
3
votes
3 answers

How to selectively underline strings in RichTextBox?

In my program after clicking on the button - selected ListView entries should be copied to RichTextBox. ListView contains contact information, and the effect I want to accomplish is similar to the one in Oultook (when choosing contacts from contact…
kyrisu
  • 4,541
  • 10
  • 43
  • 66
3
votes
1 answer

How to convert rtf-formatted text to image?

I have a Windows application (C#) for editing images, and among other features I can paste from clipboard images or text. When the clipboard contains text, it converts it to a picture (GDI+) with a default font style - than it works like pasting the…
horiatu
  • 356
  • 2
  • 10
3
votes
1 answer

Looking for quality, desktop, cross-platform HTML to RTF solutions

I'm currently writing a simple cross-platform application (using RealStudio). I need a cross-platform desktop solution for the conversion of HTML (but preferably HTML+CSS) documents to RTF. I have seen several posts including (but not limited to)…
humble_coder
  • 2,777
  • 7
  • 34
  • 46
3
votes
1 answer

How can I convert HTML to a RTF, DOC, or DOCX in PHP?

I have some HTML with a couple of css elements with floats and such and I want to convert it to a document like doc, docx, or rtf etc. I want to use php for the conversion.
redn0x
  • 83
  • 2
  • 8
3
votes
1 answer

Powershell - copy RTF to cliboard - multiple line text not working

I used to use a tiny utility called ScriptMan, it would sit in the system tray, and with two clicks it would copy the contents of my selected RTF to the clipboard. I haven't found an equivalent that works on Windows 10 and doesn't monitor the…
Scott
  • 161
  • 5
  • 13
3
votes
3 answers

Does any one know of an RTF report generator in Django?

I know about the PDF report generator, but I need to use RTF instead.
euphoria83
  • 14,768
  • 17
  • 63
  • 73