I am trying to draw PDF from WORD(i.e .doc/.docx)file. For doing so, first i am loading the WORD file in UIWebView and then firing the following java script code in webViewDidFinishLoad to get contents of WORD file in HTML format.
- (void)webViewDidFinishLoad: (UIWebView *)webView { NSString *wordDoctext = [webView stringByEvaluatingJavaScriptFromString:@"document. body.innerHTML"]; }
Now i want to write this HTML on PDF file in such a way that contents will look exactly like it appear in WORD file.