N
N
NorthWind2562014-10-01 10:27:17
Objective-C
NorthWind256, 2014-10-01 10:27:17

How to open and get plain text from formats: pdf, doc, docx, xls, xlsx, rtf, ppt, pptx in mac os on objective c?

Good afternoon.
Actually the purpose - to open a file and to receive its contents in NSString.
Is there a universal solution for the given formats? Is it necessary to use third party framework?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Cassar, 2014-10-09
@NorthWind256

RTF

NSAttributedString *rtfString1 = [[NSAttributedString alloc] initWithRTF:data documentAttributes:NULL];
NSAttributedString *rtfString2 = [[NSAttributedString alloc] initWithRTFD:data documentAttributes:NULL];
NSAttributedString *rtfString3 = [[NSAttributedString alloc] initWithRTFDFileWrapper:fileWrapper documentAttributes:NULL];

https://developer.apple.com/library/ios/documentat...
PPTX , DOCX and XLSX are zip archives with xml documents that can be parsed with a bang by any xml parser. But I won’t say anything
about PPT , DOC and XLS .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question