Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reading .ppt (MS PowerPoint) file in Cocoa Touch

Any idea how to read a .ppt file in Cocoa Touch ?

I tried to load the contents of the file in UIWebView but it didn't work. Here is the code :

[aWebView loadData:[NSData dataWithContentsOfFile:filePath]
          MIMEType:@"application/vnd.ms-powerpoint"
  textEncodingName:@"utf-8"
           baseURL:[NSURL fileURLWithPath:filePath]];

[powerWeb loadData:[NSData dataWithContentsOfFile:filePath]
          MIMEType:@"application/vnd.ms-powerpoint"
  textEncodingName:@"utf-8"
           baseURL:[NSURL fileURLWithPath:filePath]]; 

All suggestions are highly appreciated.

Thanks

like image 471
Biranchi Avatar asked Dec 09 '09 03:12

Biranchi


People also ask

How do I read from a PowerPoint slide?

Highlight a section of text inside the applicable slide, or highlight the notes beneath the target slide, and then click the Speak command button. 3. PowerPoint reads the highlighted text or notes on the selected slide. 4. Click the Speak command button once to begin the reading session, then click it again to stop.

Can PowerPoint speak aloud and read the text in my slideshows?

Yes, it can. Using the Speak command, also known as the Text to Speech (TTS) feature, PowerPoint can read the text in your slideshows and in your notes out loud. Be advised, however, that there is not a pause and continue feature with Speak.

Does finger touch work with PowerPoint 2016 kiosk mode?

It is working with my touchscreen, and will only close if you press the ESC key. Tks Matt! Was this reply helpful? I got the same problem. With Powerpoint 2016, finger touch cannot work as mouse clicking in Kiosk mode but it works in speaker mode. For example, an picture is assigned an action "hyperlink to the first slide".

How can I improve the readability of a PowerPoint slide?

You may still be able to improve how the slide is read by grouping objects in logical units and removing objects from the reading order by marking them decorative. If you have complex diagrams or illustrations made of many objects, group the objects into logical units.


1 Answers

UIWebView is for displaying web content, in a format you could view directly in a browser. It has no idea about how to display PowerPoint files — most applications don't, since it's a proprietary Microsoft format. (I stand corrected — apparently, UIWebView does know how to display PowerPoint files and others. If it's not working, I'd suggest trying a different MIME type, such as application/mspowerpoint.) Just remember that simply loading a file into an NSData doesn't mean that anyone else you pass that data to will know how to interpret the bytes.

You might check whether Microsoft offers any tools for parsing PPT files, or look around for open-source tools — for example, Google searches often convert to HTML. Just be aware that your browser is usually not loading a PowerPoint version of the file directly.

like image 64
Quinn Taylor Avatar answered Sep 22 '22 13:09

Quinn Taylor