Archana Chaurasia
Archana Chaurasia

Reputation: 1396

Width of PDF file is less that iPad screen, what should do?

I tried to display Pdf file in UIWebView like this: 1.Take one UIwebView (name:pdfView). 2.Give Iboutlet connection to it & Delegate it to FilesOwner 3.In Viewdidload

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

4.ObjC.pdf should be in resource folder.. Its working fine but when this file displays on view in runtime on iPad it shows simulator screen on right side. Means,, pdf is by default left alinged so that in right side it shows simulator screen.

Upvotes: 0

Views: 295

Answers (1)

Denis Mikhaylov
Denis Mikhaylov

Reputation: 2045

Try

[self.pdfView setScalesPageToFit:YES];

Upvotes: 1

Related Questions