You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Iframe Scrolling on iOS

Dear Apple community,


I am struggling with PDFs embedded in iFrames for a long time.


Here is a sample I created to showcase the problem.


https://lemniscus.de/pdf_print_test.html


Just open this link on desktop and mobile safari. You will immediately notice, that mobile safari does only show the first page. If you debug, you will see that the PDF is not embedded as PDF: safari is creating and showing an image instead of the real PDF.


It is impossible to scroll to further pages, and it is impossible to print the pdf (printing only prints the image, not the pdf).


If one needs to print the PDF, the PDF must be opened fullscreen (in a new tab), but this does not work if you are starting the webapp from the home screen.


There are some stackoverflow postings and some blogs commenting the issue:


https://stackoverflow.com/questions/15480804/problems-displaying-pdf-in-iframe-on-mobile-safari

https://stackoverflow.com/questions/53558808/pdf-in-iframe-only-first-page-on-iphone-ipad

https://stackoverflow.com/questions/38325655/pdf-link-showing-only-one-page-inside-iframe-ipad-only


This issue has been around for a while and is a real pain for web developers who need to preview/ print PDFs.


I already asked this question a long time ago without any solution.

(THIS IS A REPOST FROM ANOTHER USER)

iPhone XS

Posted on Aug 24, 2019 9:03 AM

Reply
1 reply

Aug 24, 2019 1:20 PM in response to shakoure

Hello,


I can understand how frustrating this is. Are you asking this as someone who frequently runs into this issue as a consumer or as someone who is a web developer? If you are a web developer it would be better to have a download button for the document and allow Safari to display the PDF in iPad’s Quick Look.


I also encourage you to submit feedback to Apple.


Apple Product Feedback

Iframe Scrolling on iOS

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.