Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MS Word support on iOS [duplicate]

Tags:

ios

ios4

Possible Duplicate:
Reading a .doc (MSWord) file in ObjectiveC?

I am writing a printing application that supports to select image and send over Internet for ePrinting.

My client is asking whether it is possible to open MS Word and select/extract some image for above printing method

Is there any way to open MS Word document in my application ? OR is there any third-party (paid is not a problem) for opening and extracting pages in MS Word ?

Thanks.

like image 418
SkyEagle888 Avatar asked Oct 23 '11 15:10

SkyEagle888


3 Answers

Take a look at the QuickLook.framework. That can read all MS Office formats. Also can print from a supported AirPrint printer.

like image 107
Mark T. Avatar answered Nov 10 '22 02:11

Mark T.


Your best bet would be to export to PDF, and utilise some image extraction from there.

Useful libraries for this (check which work on iOS)

  • Ghostscript
  • MuPDF
  • Poppler
like image 21
A T Avatar answered Nov 10 '22 01:11

A T


There is an open source library called wordview, which you might want to take a look at. It is for MS Word formats up to Word 2000. The newer ones are XML-ish anyway, so you can probably parse them yourself using any XML reader you like.

Update: Notice that the license for this library is GPL. Not sure if that is compatible with your requirements.

Update 2: The wv2 branch seems to be LGPL, so it should fit all purposes.

like image 25
Arne Avatar answered Nov 10 '22 03:11

Arne