Render PPT files in iOS 6 - ios

I am developing an application where it will load Power point presentation file in UIWebView and capture the screen of the UIWebView for each page. And I am able to display as images one by one like a presentation.
Targetted platforms are: iOS6, iOS7
(1) Now when I want to display a Power Point document that has slides with multiple layered images/ elements or slides with animation
(2) Ppt files with custom size of slides
are not properly rendered by UIWebView. And hence I am seeing those slides in a different alignment and orientation. Basically not able to display as original images.
I searched in Google, Stack Overflow and even Apple documentation. Nowhere documented that this is not possible. Is there any other approach for loading ppt files where I will not lose any content or alignment?
SlideShark or Key Note are the apps which will display ppts as if original ppt slides.

Follow App Guidelines for UIDocumentInteractionController
Documentation
Sample Code

I think this will help you.
You can check file support using QLPreviewController here.

Related

iOS - cannot interact with video shared directly to instagram story

I'm working on an instagram share feature on both Android and iOS, and I've noticed sub-par behavior on iOS. I've tried using both the #"instagram://library?AssetPath=" API, as well as the official graph calls, and I cannot find a way to add a video file as a "sticker".
Using #"instagram://library?AssetPath=":
Android shares the video as an adjustable sticker and creates new story slots per the length of the video shared. For example, if I share a minute long video, I am able to pinch zoom and rotate it, and I can see it spanning across 3 story panels.
iOS shares the video (seemingly) as a "backgroundVideo" (see com.instagram.sharedSticker.backgroundVideo). This is static, and set to fill the screen by height. I cannot interact with this video at all, and it is cropped at 20 seconds in length to fill only one single story panel.
The same video file, when added to a story directly from the Instagram app, works correctly as a sticker and looks immensely better.
I also may be totally wrong here, but I'm mostly confident that about 5 weeks ago, iOS was not behaving this way using the #"instagram://library?AssetPath=" method. Perhaps this api was altered.
Has anyone experienced this before? Anyone have ideas on how to share a video file directly and be able to adjust it?

Displaying ppt interactively on iOS device

I have browsed and searched a lot for this but couldn't find any relevant answers/posts. I am looking for a framework/library with the help of which I can convert ppt slides into images and then render them on iOS device. Any other way/procedure which will display ppt page-wise with giving control on page transition will also be great.
Thanks in advance
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.

Use the modal view displayed by UIDocumentInteractionController

I've been thinking about the following possibility:
I am right now developing an app for displaying a different set of files(could be different formats), and use the content of these files to form 1 single file.
Because UIDocumentInteractionController could show content of formats that otherwise can't be viewed by my app(docx for example), wouldn't it be nice that I capture the modal view displayed by this controller and use it somewhere else?
I am wondering how can I access the content of presented UIDocumentInteractionController and capture it.
Any advice would be nice, thank you.
Screenshot - Maybe I could do a screenshot of presentedViewController.view, but the resolution of captured image isn't ideal - limited to the screen resolution and not high enough to be viewed on a computer monitor.

QLPreviewController VS UIWebView in terms of render efficience and memory usage

I am working on an iPad project which lets users browse local docs, ppts, pdfs and etc..
I have two options to display these files:
First, I can use UIWebView to display them;
Alternatively, I can use QLPreviewController to display them.
From ActivityConsole, I figure out that when I use UIWebView to display a 8.6M PPT, my app's process costs as following:
However, when I use QLPreviewController to display the same PPT, there will be two process as following:
I think the "quicklookd" process is a helper process launched by the QuickLook Framework.
As I see, the overall memory usage is about the same, but using QLPreviewController can cut down the memory usage of my App ( It is proved in Instruments ). So I think the display of doc can be more smooth and fast by using QLPreviewController. However, when I test these two approches in iPad1, iOS 5.1.1, I found out that the render effcience of QLPreviewController is lower than UIWebView. The scrolling of the ppt chokes much more in QLPreviewController.
Can anyone explain the underlying implement of QLPreviewController render process? And which is the better choice to display docs?
Or is there a better approach to display docs except above approches?
Thank you for any help!

Add an annotation on a pdf

I have to develop a iPad app which can view a PDF file and draw some predefined annotations on it dynamically. It's like http://plangrid.com/ do.
I went though WWDC videos, stackoverflow and some other blogs.
But could not find a way to add a controller bar on the PDF. And drag a annotation from it and drop on the PDF.
I have an idea about to view a PDF. I followed ZoomingPDFViewer example.
Please advise me.
I'm using XCode 4 and iOS 4.3.
I'm not sure if you found the following stackoverflow post:
Annotate PDF within iPhone SDK
The first answer shows how to add text to a pdf page at a given location. This should be helpful for your purposes.

Resources