I have used the CGPDFDocument class to read .pdf documents and retrieve the # of pages or pull back a page by number.
I am looking for a si
Loading a local PDF file into the web view
- (void)viewDidLoad {
[super viewDidLoad];
NSString *thePath = [[NSBundle mainBundle] pathForResource:@"iPhone_User_Guide" ofType:@"doc"];
if (thePath) {
NSData *pdfData = [NSData dataWithContentsOfFile:thePath];
[(UIWebView *)self.view loadData:pdfData MIMEType:@"application/doc"
textEncodingName:@"utf-8" baseURL:nil];
}
}
and if through network then
[self.myWebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.apple.com/iphone_user_guide.pdf"]]];