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
1 answer

Is there a way to convert DocX, OpenXml, or RTF to TextFlow in AS3?

Basically we want to be able to open up a docx file in as3 or Flex 4 and convert it to a text flow while preserving formatting, embedded images, tables, columns, etc. I know theorectically it's possible as the new Text Layout Framework is powerful…
JTtheGeek
  • 1,707
  • 14
  • 17
4
votes
1 answer

Increment Counter in For-Each Loop for RTF Template

I am trying to increment COUNTER variable by 1 inside a for-each loop of BIP report using below code. However, COUNTER variable are not incremented not matter how many loop there is. Can someone please guide me how to do this. Also I am aware of…
noobie
  • 452
  • 4
  • 6
  • 22
4
votes
0 answers

Android RTF to HTML

I am working on an Android application that allows users to view their documents. However, I've run into the issue of viewing RTF files and/or converting them to HTML. It seems that resources are very limited when searching for help on this. Is…
mark.muniz
  • 83
  • 8
4
votes
2 answers

Import external RTF file for TRichEditViewer?

I'm using TRichEditViewer on a custom page in an Inno Setup script. Is it possible to read an external RTF file into a variable, and use that variable as the content of the viewer? Or do I have to keep the actual RTF code in the script? Any help…
emendelson
  • 416
  • 5
  • 18
4
votes
1 answer

Objective C - How to create rtf from NSAttributedString

I can convert from rtf string to attributed string using following: NSAttributedString *attributedStr = [[NSAttributedString alloc] initWithData:data options:@{NSDocumentTypeDocumentAttribute:NSRTFTextDocumentType} documentAttributes:nil…
Hassy
  • 5,068
  • 5
  • 38
  • 63
4
votes
1 answer

Parsing RTF files into R?

Couldn't find much support for this for R. I'm trying to read a number of RTF files into R to construct a data frame, but I'm struggling to find a good way to parse the RTF file and ignore the structure/formatting of the file. There are really only…
Chris
  • 61
  • 1
  • 3
4
votes
5 answers

Write a *.doc or *.rtf file from a c/c++ application

How can I write to/generate a *.doc file programmatically using c or c++? Is there a (open source/cross platform) library to do this? If this is not possible, can write an *.odt file and then convert it to *.doc? Thanks in advance! EDIT: Anders Abel…
user197967
4
votes
1 answer

Parsing unicode with values > 32767 from RTF files

I'm working on an RTF parser and having some difficulty handling unicode. The RTF spec states that "Unicode values greater than 32767 must be expressed as negative numbers" (http://www.biblioscape.com/rtf15_spec.htm#Heading9), and to get the…
Adam Murray
  • 567
  • 5
  • 13
4
votes
4 answers

How do I extract/insert text into RTF string in C#

In a C# console app I have the need to extract the text from an RTF string, add some more text to it, and then convert it back into RTF. I have been able to do this using the System.Windows.Forms.RichTextBox class, but I find it a bit odd to use a…
adeel825
  • 5,677
  • 12
  • 40
  • 44
4
votes
2 answers

Printing RTF with headers and footers - FlowDocument or something else?

I've been looking at importing an RTF into a flowdocument, obstinately for the purposes of unattended printing; after a lot of poking, using a FlowDocument seemed to be the right approach. I've got the RTF to generally work, however footers…
Chris J
  • 30,688
  • 6
  • 69
  • 111
4
votes
0 answers

How to convert Rich Text RTF to plain or HTML in Delphi XE4?

In Delphi XE4 FireMonkey, I have some RTF in a stream from a database. It uses only fonts, sizes, bold and italics. How can I extract the plain text or convert it to HTML? Can I somehow use JVCL's component(s) even though I'm using FireMonkey?
Mike at Bookup
  • 1,211
  • 14
  • 32
4
votes
2 answers

WPF: Allow user to resize images in RichTextBox

Is there a method within the RichTextBox control in WPF to allow for the user to resize inserted images, or do you have to devise your own method for this. What I'm trying to achieve is shown below, a screenshot of a WordPad doing what I…
Jay Wick
  • 12,325
  • 10
  • 54
  • 78
4
votes
1 answer

Generating PDF documents from LISP

I want to generate a technical report from lisp (AllegroCL in my case) and I studied various packages/project to help me do this. Requirements: Need to generate a PDF May create an intermediate format like RTF, Restructured TEXT, HTML, Word DOC…
jochem
  • 247
  • 3
  • 15
4
votes
4 answers

rtf format to pdf

Is there any way to convert rtf format to pdf using PHP? Thanks
jose
  • 464
  • 4
  • 7
  • 20
4
votes
0 answers

How to parse RTF document using Apache Tika in java

I am parsing one Document that contains RTF Content using Apache tika but it is giving some exception. it is not giving contents of document. Here is a piece of code : public String contentEx(File f) throws IOException, SAXException, …
Rahul Kulhari
  • 1,115
  • 1
  • 15
  • 44