Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to READ/PARSE the PDF contents loaded in an UIWEBVIEW

Assume the situation, i have an UIWebView and signed in into my gmail account, i have received an e-mail with an attached pdf file. Now am clicking on the attachment link the webview will open the pdf file there itself.

At this time if am trying to read the html contents it returns NULL.

Please help me by giving an idea. Now how could i read/parse that pdf content already loaded in webview and store the data into NSString.

like image 894
Veera Raj Avatar asked Nov 04 '22 22:11

Veera Raj


1 Answers

if you have the URL for the PDF file then directly load the URL in the WebView otherwise you have to use the NSURLRequest to download the file and then load the file from the local directory of the application. I shall be glad to provide you with the code of loading the PDF file from the local directory however I suggest you to google it.

like image 171
Farrukh Javeid Avatar answered Nov 08 '22 04:11

Farrukh Javeid