-
All replies
-
Helpful answers
-
-
Sep 22, 2014 8:15 AM in response to brianfromhaderslevby shimax21,I also confirmed this bug, too.
http://www.broadband-xp.com/test/ios/iframe.html
is the sample page I created.
Safari in iOS 8.0 can display only the first page of the PDF if it is shown as iframe contents.
There is a similar (worse) bug in the case of embed tags or object tags.
Safari in iOS 8.0 can not display a PDF embedded in a HTML page(with embed tag).
-
Sep 22, 2014 9:27 AM in response to brianfromhaderslevby ddkilzer,brianfromhaderslev wrote:
It shows the first page of the loaded PDF file in the iframe, but where is the rest of the PDF file? (and yes, I need the iframe, since I need space to the right of it)
I NEED A QUICK FIX, my customers can't use my website
Any of you have a suggestion?
A frustrated developer
You may be able to manually adjust the height of the iframe (via CSS) to show all the pages of the PDF. I have not tried this myself, though.
-
Sep 22, 2014 9:39 AM in response to ddkilzerby hokie_coder,I've tried that on my app when I ran into this issue. The contents of the missing pages are still missing and increasing the iframe height just shows you more blank white space.
-
Sep 22, 2014 10:23 AM in response to hokie_coderby ddkilzer,hokie_coder wrote:
I've tried that on my app when I ran into this issue. The contents of the missing pages are still missing and increasing the iframe height just shows you more blank white space.
Yes, I just noticed that after testing. The only other possibility that I can think of to work around this is to break the PDF into individual files for each page, then you could use either <iframe> or <img> tags to render each page individually.
-
Sep 22, 2014 10:45 AM in response to ddkilzerby ddkilzer,Note that this issue only reproduces in the Modern WebKit API (WKWebView) which is now used by Safari. Offline web apps (after saved to the Home screen) and WebSheet (the app used for captive Wi-Fi networks) still use UIWebView, so they are not affected by this bug.
Other web browsers which still use UIWebView continue render the full PDF in an iframe as expected.
-
Oct 1, 2014 10:45 AM in response to brianfromhaderslevby syelevich,Did you find solution for "safari can't display PDF in iframes again" issue?
-
Oct 1, 2014 10:55 AM in response to syelevichby brianfromhaderslev,No solution Found, still a pain in the a.. Hopyfully they will fix their problems soon, otherwise we will be forced to start using android tablets Since chrome has no problems.
i Know that we Can download chrome to ipad but still safari is the default browser and A normal user will use the default browser
Apple please fix this problem fast.
-
Oct 1, 2014 1:42 PM in response to brianfromhaderslevby hokie_coder,In my application, I generated the PDFs that I was trying to display in an iframe from HTML that I also generated. It was a print preview screen for printing documents from an Ipad. We had to update our iframes to instead show this generated HTML for the preview and then use the PDF for actually printing the document. Using this approach also allowed us to be able to scroll through the document with one finger on the Ipad. This only works if you have the HTML which is used to create the PDF document though, which may not be the case for everyone.
TLDR;
If you generate PDFs from HTML code, you can instead write the HTML into the iframe's #document to show it to the user in iOS8
Below is a link to a blog post showing how this is done:
http://www.zomeoff.com/javascript-how-to-load-dynamic-contents-html-string-json- to-iframe/
-
Oct 1, 2014 6:08 PM in response to brianfromhaderslevby shimax21,Today I noticed one thing even though it was obvious from the beginning.
In iOS 8.0's Safari, when I touch and hold the PDF, the callout comes up.
It is the callout for saving images.
The PDF in the iframe is recognized as a mere image.
-
Oct 20, 2014 5:13 PM in response to shimax21by shimax21,I upgraded to iOS 8.1 today, but I found this bug had not been fixed yet.
All other bugs related to PDF are not fixed at all.
I am disappointed with Apple's support.
-
Oct 24, 2014 1:33 AM in response to brianfromhaderslevby jameskyburz,I had this issue. In my case I was using a data url...
The solution was to set the src of the iframe to a blob url created with URL.createObjectURL
-
Nov 17, 2014 6:38 PM in response to shimax21by shimax21,I upgraded to iOS 8.1.1 today, but I found this bug had not been fixed yet.
All other bugs related to PDF are not fixed at all.
I am disappointed with Apple's support.
-
Apr 14, 2015 4:37 AM in response to brianfromhaderslevby tomasevskij,Any news on this? Is there an actual bug report filed somewhere that I can refer my customers to when they complain about this or is this discussion as close to that as I can get? I assume Apple does not have an open issue tracker where one can see progress on known bugs?