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

Internal hyperlink in RTF

You can create an external hyperlink in RTF documents as shown here. Is there a way to create internal hyperlinks like you can using anchors in HTML?
fullerm
  • 406
  • 1
  • 8
  • 23
3
votes
1 answer

Save BOM with File

Can someone please tell me how to save the byte order marker (BOM) with a file? For example, I save a text file now like: NSString *currentFileContent = @"This is a string of text to represent file content."; NSString *currentFileName =…
DenVog
  • 4,226
  • 3
  • 43
  • 72
3
votes
1 answer

Switch Inno Setup license memo to RTL mode

I'm creating a installer with multi language, some of language need RTL direction to show naturally. This is the code I'm using for my license page: LicenseMemo := TNewMemo.Create(WizardForm); with LicenseMemo do begin Parent :=…
sanab3343
  • 154
  • 1
  • 11
3
votes
2 answers

Inserting an image into RTF data in C++ with MFC

I have to create a RTF file using C++ and MFC. This RTF file will contain images with a link on each of them. The RTF is always in memory, it's never written on the hard disk. I need to insert an image in the RTF file at runtime(the image is not…
Michael
  • 1,557
  • 2
  • 18
  • 38
3
votes
1 answer

How to replace placeholders with formatted text in a Word doc using .NET?

I have a C# .NET app which needs to load a Word document, find some placeholder text (e.g. "
") and replace it with formatted text pulled from an RTF control. This final document is then opened as an e-mail message in Outlook, ready to…
Malvineous
  • 25,144
  • 16
  • 116
  • 151
3
votes
0 answers

Developing Rtf Reader on Android

I need to develop primitive reader on Android, which would read formats txt, rtf Has how much understood, problems will be with a Rtf format. That it is possible to use to open document Rtf? And if there are somewhere examples of work with Rtf?
Corver
  • 31
  • 2
3
votes
3 answers

Render RTF document as an image on the web

I have many RTF documents storend in my database. I'm trying to create a webpage to render an RTF document as an image. Any ideas on how to do this?
Nebojsa Veron
  • 1,545
  • 3
  • 19
  • 36
3
votes
2 answers

Convert HTML to RTF

I have notes in the database stored as html with the DHtml component. But I want to change format to RTF and use DevExpress TcxRichEdit instead because I feel that is a simpler component, more stable etc. Users have problems with dissapearing texts…
Roland Bengtsson
  • 5,058
  • 9
  • 58
  • 99
3
votes
3 answers

Duplicating UWP RichEditBox content adds extra lines

I am trying to get and set rich text in a ;RichEditBox, but every time I do perform a GetText then a SetText, one extra carriage return is added. Here the super simple example with a button that does get then set. Try it out to see one extra…
ClaudiaWey
  • 167
  • 9
3
votes
1 answer

How to open a RTF file with C# without showing the Microsoft Word "Convert File" dialog?

Question I want to programmatically open a RTF file in Microsoft Word using C#. But I don't want to get the "Convert File" dialog while doing that. How do I do that? Code I've tried this piece of code, but it still shows Word's "Convert File"…
Lernkurve
  • 20,203
  • 28
  • 86
  • 118
3
votes
0 answers

UWP RichEditBox automatically adds a new line to rtf when saving

The UWP RichEditBox automatically adds a new line to rtf when saving. You notice it when you load the saved RTF into a RichEditBox again. Is there a valid reason for this madness? Is it a bug? And most importantly, how do I remove it?
LeBrown Jones
  • 887
  • 6
  • 17
3
votes
1 answer

Comparing two RTF documents side-by-side in Word (VSTO)

For my VSTO Word solution, I need to programatically "compare" two documents side-by-side. In other words I need to, from code, perform the equivalent of clicking the View > Show Side by Side button. I tried using the CompareSideBySideWith method…
System.Cats.Lol
  • 1,620
  • 1
  • 26
  • 47
3
votes
1 answer

Spelling mistakes - Pyenchant

I tried using python library for spell-check,correcting and replacing. For some complex spelling correction, I need to have a second opinion and to see replaced word underlined or strike through. Even if the file output is in rtf format, it is ok.…
Programmer_nltk
  • 863
  • 16
  • 38
3
votes
2 answers

Display html using a wxPython control

I am trying to display rich text (or html) in a segment of a wx python frame I have tried the rtf control with no luck (see here). I am now trying the html route, but in the only examples I can find the html is display in a window that takes over…
Psionman
  • 3,084
  • 1
  • 32
  • 65
3
votes
3 answers

How to convert RichText (RTF) document with images into HTML in Delphi?

I have been trying to find a free (preferably open sourced) component or library which will allow to convert a RTF file with embedded images into HTML file and image files or better HTML and image streams. The perfect solution, regardless if it is a…
too
  • 3,009
  • 4
  • 37
  • 51