Ajay_Kumar
Ajay_Kumar

Reputation: 1387

What is the concept display pdf file with page wise in iphone

I am doing a simple program. I have 3 pdf file for 1 chapter like "pdf_chapter_1_page_1.pdf","pdf_chapter_1_page_2.pdf","pdf_chapter_1_page_3.pdf". In first chapter we have 3 pdf file. I want to display these 3 pdf file in iPhone. When user will open application he will be on 1st page of chapter and whenever he will drag either horizontal or vertical next pages of same chapter will be loaded.

What is the concept to do it ? Code reference will be appreciate.

Thanks in advance.

Upvotes: 0

Views: 403

Answers (2)

Naveen Thunga
Naveen Thunga

Reputation: 3675

You can show pdf page in iphone using UIWebView. It will show you in pagewise.

UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(10, 10, 200, 200)];  
NSString *path = [[NSBundle mainBundle] pathForResource:@"document" ofType:@"pdf"];  
NSURL *targetURL = [NSURL fileURLWithPath:path];  
NSURLRequest *request = [NSURLRequest requestWithURL:targetURL];  
[webView loadRequest:request];  
[self.view addSubview:webView];  
[webView release];

Upvotes: 0

sosborn
sosborn

Reputation: 14694

There are several ways to do this. UIPageControl is one way.

Upvotes: 1

Related Questions