0

Possible Duplicate:
Reading text and images from a pdf document in iOS

I am trying to access some .pdf files in my ios app and read the text inside them which i later display in a UITextView. I was able to extract text from .txt files, .doc files as well as .rtf files using a UIWebView. But not sure how to proceed with .pdf files. Please if someone can help me out with this. I just dont want to display the pdf in a webview, rather i would like to have the text content inside it for further manipulations.

Community
  • 1
  • 1
Arpit Raniwala
  • 235
  • 2
  • 9
  • Sorry to ask this but how did you extract text from doc files using a uiwebview? – FD_ Dec 24 '12 at 16:37
  • 1
    u will have to bridge the txt and .doc files in a webview and then using the UIWebViewDelegate method- webViewDidFinishLoading you can get the data of the files using: NSString *document = [webView stringByEvaluatingJavaScriptFromString:@"document.documentElement.innerText"]; NSLog(@"%@",document); – Arpit Raniwala Dec 25 '12 at 05:23

0 Answers0