How to Edit MSWord documents in an iPad application - iphone

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"

Related

Importing PDF files to app

I am trying to import a PDF file from other applications, such as mail, but I'm not sure exactly what I should be looking for. I want my user to be able to tap on the share button in a PDF and my app to be listed there as a place that can accept them, such as "Copy to iBooks"
Any good tutorials? Or suggestions as to what I should look for?
Preferably in Swift
Thanks!
You may use Action Extension for making PDF available in your app
Below i have linked Some Tutorials for Action Extension which is not perfect for your requirement but you check the concept and basic implementation for it
Bookmark from Browser
Read a text
Official apple doc
You can tell your app which types of documents it will support in the info.plist. A good place to start is Registering the File Types Your App Supports
in the iOS documentation.

RTF document on Quick Look - iPhone SDK

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!

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

Multitasking in iphone

How to implement the multitasking where to open the other application from my application (for example: opening my PDF document in to the iBooks app)?
See the documentation for UIDocumentInteractionController. It offers the functionality to give the user a preview of a document and present her with a list of apps in which she can open this document.
AFAIK it is not possible to send a PDF to iBooks programmatically without user interaction.