RTF document on Quick Look - iPhone SDK - iphone

I have some RTF documents, created with the MigraDoc Foundation (included with PDFsharp), which include tables. I'm trying to open them from the iPhone using UIWebView and QuickLook but in both cases it returns only the first page and crapped.
I tried to preview the same RTF file using the Mail app and it show me the same result. The Quick Look on Mac shows the document in its correct format.Do you have any idea how can I present this RTF document?
Thank you!

Related

SDK to Read PPT , xls and .doc file in iOS

In my application i need to launch ppt , xls, pdf files. i am sure, iOS Framework support to view PDF files without launching any other application, but is there any way to open ppt , xls doc , if yes please give me any pointer,
I believe, there should be some SDKs available , which can be integrated through an application and can make use of it.
If you just want to view the Office files, have a look at:
Document Interaction Programming Topics for iOS: Quick Look Framework.
Quick Look Framework Reference
Quick Look Framework supports a lot of file formats as you can see in the links above. It is available in iOS 4.0 and later.
You can also use UIWebView to display them. See Using UIWebView to display select document types.

Is there a way to export a textView to a Pages document?

I created an iPhone app that can export the contents of a textView to email, to text message and I also want to be able to export the data to a Pages document on my phone. Is there an easy way to do this?
As far as I know pages is a protected format by Apple. They have not released the specifications and there are no inbuilt functions within xcode to support that. So, no easy way unfortunately.
If you want some proposed solutions for saving as an rtf on iPhone:
How to create and save a .rtf, .doc, .docx in Objective-C for iOS

How to Edit MSWord documents in an iPad application

There appears to be iPad applications that can edit MSWord documents such as "Pages". My question is how can this be accomplished programmatically? Are these apps using OpenXML to do this or is there another way to do it. An API or something? Thanks in advance.
These applications such as Pages use private code to read documents and edit it. At this time there is no OpenXML library for the iPhone SDK. The iOS provides a way to display documents (doc, ppt, xls, pdf) by using the UIWebView but no other API.
Developing a word editor is a real challenge, we did a small rich text editor and it was a very interesting project.
Good luck!
You can now show a button which will allow the user to press it and send the document to another app for editing, the list of apps the file can be sent to is managed by Apple code, so you don't have to do much. Google "ios document controller"

how to open the url from a .pdf file through xcode programming

i'm trying to get the url from a pdf files so that if a user double taps the url on the pdf file, it opens in a new web page.... how can i do it ? any suggestions ? i'm using Xcode 3.2 version.
Apple provide the PDFKit API which you might want to use rather than wrting your own PDF parser.

PDFKit framework available on the iPhone OS?

I'm curious to know whether the PDFKit framework is available for use within the iPhone OS, in order to build a PDF reader a bit more sophisticated than the one available by simply opening PDF documents with UIWebView.
Just wondering if this is an option or not.
Grab the official sample code called QuartzDemo which has an example on how to manipulate a PDF file using Quartz graphics. The output seems faster than the UIWebView.
The PDFKit is not available on iPhone at this time. Certainly the functionality is there, but Apple has not opened it up in an available framework. You should file a bug on this if you'd like to see it in the future.
If you want more control over PDF, there are many ways to manipulate PDF content using Quartz graphics.