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

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.

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.

How to open the iBook file without use the third party apps?

I want to open the iBook file in my device without use the third party apps like iBook App.I have read many articles and suggests use of UIDocumentInterectionController class.
See the SO answer How to open a file on iBooks
When I use UIDocumentInterectionController class with demo app, it launch the iBooks Appliaction. But i want to open the file without third party app.
If I have use itms-books: at the beginning in the url , It's not work in IOS 7.
Please help Me.
If you are opening a aPub file it might work to use some ePub component.
Native iBook files are not support by iOS and there for UIDocumentInterectionController will not be able to display the file and open iBooks.
QuickLook only supports:
iWork documents
Microsoft Office documents (Office ‘97 and newer)
Rich Text Format (RTF) documents
PDF files
Images
Text files whose uniform type identifier (UTI) conforms to the public.text type
Comma-separated value (csv) files

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!

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"

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.