Devarshi
Devarshi

Reputation: 16758

How can i show my pdf file on ipad application

i want to create simple pdf reader application for ipad. but did not find the proper documentation or sample code. please guide me from where i should start.

Thanks

Miraaj

Upvotes: 1

Views: 2424

Answers (4)

Senthil
Senthil

Reputation: 510

uiwebview *web;

[self.web loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:[[NSBundle mainBundle]pathForResource:@"senthil" ofType:@"pdf"]]]];

Upvotes: 0

Pacu
Pacu

Reputation: 1985

You can find a nice app sample with CC license on this repository

I hope it helps. It definitely helped me

Upvotes: 1

kennytm
kennytm

Reputation: 523724

Just use a UIWebView. WebKit can display PDF natively.

If you need to render the PDF yourself not relying on WebKit, check the CGPDF*** stuff (search for it in Xcode docs).

Upvotes: 5

Barry Wark
Barry Wark

Reputation: 107774

You should start at the iPhone Developer Center.

Upvotes: 0

Related Questions