rtf

Extracting images from RTF using PHP?

Hello, I'm just wondering if anyone has any experience doing this? All of the resources I have seemed to find on the internet deal with doing the opposite (inserting images into RTFs), but it seems like extraction isn't that popular of a notion? Basically, I'm just wondering if it's possible to upload an RTF file using a form, and dump...

How to use RTF export feature of KDE?

In stackoverflow.com I have found a question where a user was suggesting to use this libraries of KDE in order to export-inport RTF files. But, when I downloaded I saw that there are lot of files that are included in the .cc and .h files that are missing. So please give a hint how to download all necessary files and is there any guide th...

How to write programmatically some unicode text in RTF format?

In order to generate RTF programmatically I have decided to use rtflib v1.0 from codeproject.com. But I can't understand how to generate text in russian unicode. So I need to generate a unicode text. Could someone help me? P.S. Honeslty, I could write in .rtf file some text in, only by opening it with MS Word. But after writeing some te...

When dropping a text snippet how can i keep the links to remain functional ?

I am dropping a text snippet (from IE) from a web page, that might contain links too. string _rtf = (string) data.GetData("Rich Text Format"); RichTextBox box = new RichTextBox(); box.DetectUrls = true; box.SelectedRtf =_rtf; box.SelectAll(); _rtf = box.SelectedRtf; The problem is, when i save the content of the rich text box, the link...

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 there another way? Is there an rtl function for this or a better approach? UPDATE: In this...

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 funciton below, can anyone suggest a way to avoid to define a parent? Can you also comment on t...

Rendering multiple document formats with Cocoa's CoreGraphics

CoreGraphics gives the possibility to render PDF documents, this is great. But it seems like it could support other types too like Word documents, HTML, RTF and others. A quick look in the doc2pdf.py example on the Mac OS X Developer DVD makes me think so : pageRect = CGRectMake(0, 0, 612, 792) c = CGPDFContextCreateWithFilename(ou...

Java lib for WordML to Word2002 conversion

Hello, For a project I am working on, I need to convert WordML stream into Word 2002 compatible .doc format (don't ask why - but quite a large group of users are still on Word 2002 with upgrade to latest version not feasible till Q4 2010). I have tried to research a lot of options and have mostly hit a dead end. My use case is that th...

Send an e-mail with rtf text in delphi

I would like to perform the following task: converting a TRichEdit content (an rtf text) into a not-plain-text e-mail message body. MAPI doesn't support rtf, but is there a way to do it maybe with Indy? The problem is that rtf is rtf and emails are plain text or HTML. Can someone suggest a trick? Is it possible to convert rtf to text ...

Reading content from file

NSString *contentPath = [[NSBundle mainBundle] pathForResource:@"test2" ofType:@"rtf"]; NSData *databuffer; NSFileHandle *file = [NSFileHandle fileHandleForReadingAtPath:contentPath]; if (file == nil) NSLog(@"Failed to open file"); databuffer = [file readDataToEndOfFile]; [file closeFile]; NSString *contentText =[[NSString alloc...

RTFString Containing NSASCIIStringEncoding Special Characters?

I have a string in my cocoa GUI that needs to have special formatting (fonts, colors, etc.). Naturally, I'm using an attributed string. For convenience, I Init the string as an RTF: NSString *inputString = @"This string has special characters"; NSString *rtfString = [NSString stringWithFormat:@"{@"***LENGTHY RTF FORMATTING STRING *** %@...

RichTextBox.RTF return unicode format or ANSI format?

Recently, i'm very confused about the RTF format. I check the RTF 1.6 spec from MSDN, which is native supported in .Net. RTF 1.6 will support Unicode by \uN, and for ANSI, RTF will support multiple byte language via codepage. If we use RichTextBox.RTF to retrieve the RTF format, which format will be returned? Unicode? or ANSI multiple by...

[Delphi] How would you display a DBGrid's contents in a table within a Word or RTF document?

I'm using Rave to generate reports, but it's poor at generating Word docs. My reporting needs are simple; the only thing I can't do easily within code is make a table. I'd love suggestions about how to display a [DB]Grid's contents (or underlying ClientDataSet records) within a bordered table, in Word or RTF compatible format. Thanks, a...

Converting .rtf to .pdf in Haskell

The title really says it all! I have a .rtf document (with an image, it's not just text), what haskell libraries are there out there to help me in my quest, or is it way easier than it appears? ...

Python RTF Multi Column layout

Can anybody reccomend a way of generating a multi column RTF document with python, i was going to use PyRTF but i cant find any documentation on how to set up columns. i think i might need to edit the modules source any reccomendations? ...

How can I change the background color of specific characters in a RTF document?

I'm trying to output RTF (Rich Text Format) from a Ruby program - and I'd prefer to just emit RTF directly without using the RTF gem as I'm doing pretty simple stuff. I would like to highlight specific characters in a DNA sequence alignment and from the docs it seems that I can either use \highlightN ... \highlight0 or \cbN ... \cb1 Th...

How safe is the data being parsed by RTF editors like TinyMCE?

Hi Everyone, I have a great concern in deploying the TinyMCE editor on a website. Looking at the code parsed by the editor it does a great job, and I leave the HTML button off the toolbar configuration so users can not inject their own source. However, from what I read in the TinyMCE docs, it claims to degrade nicely to a regular texta...

How to convert UTF-8 string to RTF string in java ?

Currently my project need export report to MS Word , and i choose using RTFTemplate engine to do it. But my problem is I need convert all character to RTF string first . Everyone have experiment with this problem can suggest me ? ...

Can't insert a picture into RichTextBox

I want to insert a picture into a RichTextBox. I add the picture in coding. This is the major code, adding a jpg image: MemoryStream memoryStream = new MemoryStream(); img.Save(memoryStream,System.Drawing.Imaging.ImageFormat.Jpeg); byte[] bytes = memoryStream.ToArray(); String width = img.Width.ToString(); String height = img.Height.To...

RTF to PDF in Java

We are building an application which partially interacts with other system. We are pulling some data from the other system which is returned as RTF document. But we have to prevent users from editing this file, so we thought about converting it with iText into PDF. Code snippet: // moving the rtf data into input stream to be use...