Why doesn’t the PDF in the iframe display the same in all supported browsers?
-
Hello,
I wanted the page to have an embedded PDF. WordPress can do this by itself and inserts it using the
<object>
element. The problem is that the site is https, but the path to the files is http, which causes the problem of mixed content and pdf is only displayed in Firefox (probably some built-in extension).The domain is set to Redirection to HTTPS: Enabled and deals with mixed content. Still, it doesn’t work in this case. So I tried to add it using an
<iframe>
.<iframe src="url" width="100%" height="750px"></iframe>
It is already displayed in browsers, but it causes other problems.
1. In each browser, the built-in window with the PDF file is displayed differently – the toolbar is different. Does it depend purely on the browser and can’t affect it?
2. What defines the maximum height of the window. If I put the height at 100%, it will only appear as “small noodles” and I haven’t figured out which element is causing it.
3. Why doesn’t it appear in Android browsers (those that support the
<iframe>
element) and only a file download window pops up?Please help
Thank zou
The page I need help with: [log in to see the link]
- The topic ‘Why doesn’t the PDF in the iframe display the same in all supported browsers?’ is closed to new replies.