We can find out the height of the Text by
NSString *height = [_webViewstringByEvaluatingJavaScriptFromString:@" document.body.offsetHeight;"]; if([height floatValue] > _webView.frame.size.height) { [_htmlpage appendFormat:@"<html><body><div><a name='a%d'><font size ='%f'%/>%@</a>",_text,-(_readerView.frame.size.height*_webView.frame.size.width) /[heightfloatValue],x1]; [_htmlpage appendFormat:@"</div></body></html>"]; }
This will set the font size of the text to smaller upto an extent.