how to read .rtf file from the FTP server? - iphone

I know how to read text file from the ftp server.I have used this logic for rtf file.But it gives wrong out put.Is it possible to read rtf file from the server?If possible then please help me.

You need software that understands the rtf file format. Microsoft Word does. Most plain text editors will not be able to show you the contents of a file in rtf format.
Google for rtf format
Added: didn't notice that you're on an iPhone platform. Google for "rtf iphone" and you'll see several choices including http://prmac.com/release-id-4180.htm

Related

Programmatically convert Doc(x) files to PDF using Microsoft Word

We are developing a Java application that needs to programmatically convert .rtf, .doc and .docx files to PDF files.
Formatting is important to us, so we need the page numbers to be the same between a source file and a target PDF file, and the contents of each page being the same as the original file.
We have tried out open source solutions, such as JODConverter to invoke a LibreOffice of OpenOffice installation, Docx4j and XDocReport. The best formatting was achieved with LibreOffice. However, even in that case, the pages were different (for example, a 87-page .rtf file results in an 80-page PDF file).
So, we think that the ideal way to make the conversion would be to somehow invoke Microsoft Word though our Java application, and make the conversion with it. That would produce PDF files that have the same formatting as the original files.
Is this possible in any of the following ways:
An API that is directly invokeable through Java?
An API that is invokeable through a .Net language and we would use that with something like JACOB?
A 3rd party library that uses a Microsoft Word installation under the hood (something like JODConverter for Word)?
A CLI interface supported by Word (relevant question)?
Something else?

Reading powerpoint pptx file in Objective-C

I was asked to find a way to use pptx as input for a game using cocos2D on iphone.
As far as I know pptx file use Office Open XML standard and should be fully readable, including informations on animations, in any programming language.
However I only find examples/tutorial using docx files and I would like to know if such documentation exists for pptx files.
I just spent two days on that topic, and I just can't find the strength to dive into Microsoft documentation.
A .pptx file is just a ZIP file containing some images files and XML files. Wouter van Vugt's free e-book will help you understand the XML. Unfortunately the files contain a lot of boilerplate so it can take some time to find the bits you are interested in.

Convert rtf files to chm files ? Convert hlp files to chm files?

We were shipping .hlp files to customers when development was in VC++. The process to create it was as follows:
1. Create rtf file
2. Create new project in WinHelp and then compile to get .hlp file.
Now development has moved to .net and also I found that we can no longer open .hlp files in windows 7 or vista.
I wanted to know if there are any free command line tools using which we can convert these .hlp files to a .chm file ?
Also I wanted to know if there are any free command line tools to convert .rtf file to .chm ?
Microsoft has a tool which can convert Win Help projects to HTML Help. It is called HTML Help Workshop. You can open the existing .hpj project file with it and choose the option to convert it to HTML Help project .hhp. You can then compile the .hhp project with the same tool to generate the .chm file.
There are however many shortcomings in the tool. It generates an HTML page for each page in the rtf file but the naming of these HTML pages is random causing future referencing to be difficult.
If you just have the .hlp file and not the original Win Help project files, you can use a decompiler to generate the .hpj and .rtf files first and then convert them using HTML Help Workshop.
I found the following link quite helpful:
http://www.help-info.de/en/Help_Info_WinHelp/hw_converting.htm
EDIT: there are some 3rd party convertors and Help Authoring Tools (HATs) also available which may do the job better than HTML Help Workshop but most of them are not free.
Keep in mind that CHM is compiled HTML, and not very related to html, so your main problem is conversion of rtf to html
I would try to convert RTF to HTML, but on a topic per file.
What you could try is to input the RTF into word and try to save as HTML, and then use a program/script to split out the various topics to individual files and fixup references.
Then compile the result with a CHM compiler (like MS htmlhelp workshop)

How to create a Word-like document (.docx) in an app?

I would like to create a .docx file within an iPad application. The file would be created within the app (the user would create/edit it like in Word--preferably with the same "feel" of Word) and then it would be saved as a .docx file.
So, is it possible to do this? If so, how? What other alternative file formats are there?
Thanks,
John
You can easily generate RTF corresponding to most typical features of a word processor. It will not cover the vastness of available DOCX features, but I'm not certain a complete port of Microsoft Word to the iPhone would be practical, so most of these features would be unavailable anyway.
RTF is fully (read-write) supported by Microsoft Office and several other editors.

Rich Text Format RTF codec for iPhone

Anyone know of any library that will enable me to read/write RTF format files on the iPhone? NSAttributedString would be the way to go - but since that isn't available just yet :-(
Essentially I need to convert between simple text and RTF.
The RTF file format is pretty simple. So if you just need to generate RTF from simple plain text the you can just generate an RTF file by hand.
See http://en.wikipedia.org/wiki/Rich_Text_Format to start.