1

I am trying to display a PDF in an iframe..So there are 2 frames and the bottom frame has the pdf. It is coded as;

<frame src="ebook.pdf" title="Content Frame" name="content" id="content" frameborder="0" border="0" noresize scrolling="yes" marginwidth="0" marginheight="0" noresizescrolling="AUTO" framespacing="0" />

For some reason, I am unable to scroll through the PDF in iPad Safari...More specifically within the iframe..

Is this a PDF issue or is it an iframe issue?

I have tried the using the instead of frame..Still does not work..

Please help. Thank you.

copenndthagen
  • 49,230
  • 102
  • 290
  • 442

4 Answers4

1

When you insert the <iframe> into a <div> with height specification and set overflow-y to scroll (maybe auto i did'nt try) you can scroll using two fingers on iPad. It has no effect on pc browsers.

Prasad Jadhav
  • 5,090
  • 16
  • 62
  • 80
fanThomas
  • 127
  • 2
  • 6
  • It works, but mess up on pc/crome - double scrolling. But that's an easy fix, and it actually works, slow, but works on the !"#¤ ipad. – Teson Mar 08 '13 at 10:15
1

Heres a link to an iframe that doesnt scroll on the ipad:

I have to redesign all my pages in iWeb now since the iPad won't scroll iFrames made with iWeb on my iPad. I get quite a few hits from people using iOS.

fabpico
  • 2,628
  • 4
  • 26
  • 43
Adam
  • 11
  • 1
0

Use (iOS App) Opera Mini browser instead, when clicking on a pdf in Opera Mini it induces Safari to open the PDF in a non-frame mode. Weird I know but it works.

0

Scrolling within frames is a tricky UX thing with the iPad -- try scrolling with two fingers. I don't know about PDFs, but that's how scrolling is done for other frames in Safari.

jnpdx
  • 45,847
  • 6
  • 64
  • 94
  • I tried scrolling with 2 fingers..still does not scroll or go to the next page... – copenndthagen Apr 25 '11 at 09:38
  • Just to add, I can scroll through the pdf if I hit the complete PDF URL directly in Safari..However the pdf is actually displayed within an iframe in my app and I cannot scroll through that in the iframe.. – copenndthagen Apr 25 '11 at 10:25
  • If you give a link to the full page with code, maybe someone can help. But, if the duplicate question link or my answer didn't help, you might be out of luck – jnpdx Apr 26 '11 at 22:34
  • You can checkout the page on http://ipad.atwebpages.com/test.html Again Works fine on desktop...does not scroll on iPad.. – copenndthagen Apr 27 '11 at 06:35
  • @testndtv if jn_pdx's answer didn't help you, why did you accept it? I have the same problem and I would like to have an answer too... – Maxbester Aug 20 '13 at 06:27