WordPress.org

Ready to get started?Download WordPress

Forums

Embed PDF
Embeds in FF, but IE screws up the hypertext (29 posts)

  1. travellers
    Member
    Posted 2 years ago #

    My embedded pdf works here fine in Firefox, but in IE I just get the Google Reader box with no content.
    Somehow the link is 'breaking' in IE - when I view the source, I see
    <code><iframe src="http://docs.google.com/viewer?url=http%3A%2F%2Fwww.minors-on-tour.org.uk%2Fwp-content%2Fuploads%2FBookingForm2012.pdf&embedded=true" style="height:600px;width:570px;" class="pdf"></iframe></code>
    As you can see, the slasshes are displayed properly in the Docs Viewer part of the URL, but the slashes are replaced with %2F elsewhere? Is that what's causing the problem in IE, or is it something else?
    TIA

    http://wordpress.org/extend/plugins/dirtysuds-embed-pdf/

  2. Pat Hawks
    Member
    Plugin Author

    Posted 2 years ago #

    Rest assured that this is working exactly as it should.

    What you are seeing is part of the escaped URL. Since colons and slashes are not allowed in that part of the URL, they are replaced with their escaped equivalents.

  3. travellers
    Member
    Posted 2 years ago #

    Okay, thanks for the info on that. But still, why does my embedded document show in Firefox but not in Explorer then?

  4. Pat Hawks
    Member
    Plugin Author

    Posted 2 years ago #

    I have been unable to reproduce this error.
    The document appears exactly as expected in Internet Explorer

    See screenshot

  5. Pat Hawks
    Member
    Plugin Author

    Posted 2 years ago #

    If you are able to figure out what's going on / how to fix it, please let me know.
    If there's something that I can change in the plugin to make it work, I'd love to.

  6. travellers
    Member
    Posted 2 years ago #

    I can't fathom it - I have THREE pc's here, and ALL of them show the page properly in Firefox and ALL of them show an empty frame in Explorer!

  7. Pat Hawks
    Member
    Plugin Author

    Posted 2 years ago #

    I don't know what to tell you.
    Do you have the security settings in Internet Explorer set to something other than the default?

    What version of Internet Explorer are you using and on what version of Windows?

  8. alanhowesworld
    Member
    Posted 2 years ago #

    I'm getting the same problem - looks like @travellers doesn't have a fix either. My problem page is here . Fine in Firefox, but not working in MSIE. If I "open in new window" in MSIE, it's there OK - but on the primary page the "big thumbnail" is not showing and the paging and zoom buttons have no effect. Instead of the pdf image I have five "picture not shown" icons. (My pdf has six pages.)

    I tried it on a totally different PC (MSIE only) and could not even see the toolbar buttons.

  9. alanhowesworld
    Member
    Posted 2 years ago #

    Hmm. Wonder if it's to do with the MSIE (or windows) version? I am using MSIE 9.0 with Vista Business 6.0 SP2.

    My son is on MSIE7 with Windows 7 (IIRC), and reports it works fine for him.

  10. travellers
    Member
    Posted 2 years ago #

    Hi Alan
    You're right I'm afraid - I never got to the bottom of it. I've just looked at your page in FF and its fine, but no thumbnails in IE. I'm using MSIE 9 here with Win 7, and just tried my laptop which is again IE9 but with Vista and there's no thumbnails but is fine in FF.
    Don't know what to suggest I'm afraid :(

  11. alanhowesworld
    Member
    Posted 2 years ago #

    My suspicion is that it's version 9 of MSIE that is causing the problem - though I may well be wrong! Here is what I find -

    - My PC on Vista Business:
    ...Firefox 7.0.1 - works OK
    ...MSIE 9.0 - "big thumbnail" does not show, but toolbar does and "opens in new window" OK
    ...Chrome 14 - works OK
    - My Laptop on XP Prof 5.1 SP3:
    ...Firefox 6.0.2 - works OK
    ...MSIE 8.0 - works OK (my son also finds MSIE 7 works with XP Prof)
    - Son's PC on Windows 7:
    ...Firefox 3.6 - does not work at all, not even toolbars (but it is a very old edition of FF)
    ...MSIE 9 - "big thumbnail" does not show, but toolbar does and "opens in new window" OK

  12. alanhowesworld
    Member
    Posted 2 years ago #

    And I'm on WordPress 3.2.1 ...

  13. travellers
    Member
    Posted 2 years ago #

    You could be right - I am currently running ie9 beta and having major problems with pdf viewing would seem to indicate others feel IE9 has issues with pdf's. I just tried to look up the instructions to 'roll back' IE9 to 8, but I'm afraid they look a bit over my head, and all the PC's I have here have already upgraded so I reckon I'm stuck with it!

  14. alanhowesworld
    Member
    Posted 2 years ago #

    I've added a caveat to my webpage! Still ticking off problems with WordPress - I am very new to it ...

  15. Pat Hawks
    Member
    Plugin Author

    Posted 2 years ago #

    Thought I would add some thoughts to this discussion.

    * I am sure that the version of WordPress you're using does not affect this issue at all. If the object works in any browser, than obviously the plugin is putting the correct code on your page.
    * When I test my pages on Windows, I test only against IE9 on Windows 7, and the plugin seems to work fine there for me.
    * The issue has nothing to do with IE's PDF support. It isn't actually a PDF being displayed, rather, Google converts each page of the PDF to an image and displays that.

    If we can't get this working in IE, what would be the best alternative? We could just give IE users a link to download the PDF instead of the viewer object, though that seems like it would be a shame since it does work in IE some of the time.
    If we detect IE, we could skip the viewer and instead render the PDF in an iframe, though if the user didn't have Adobe Reader installed, this would prompt them to download and install it, which isn't optimal.
    I am totally open to suggestion on this one.

  16. alanhowesworld
    Member
    Posted 2 years ago #

    Thanks for your patience and explanations, Pat.

    I am puzzled though - while the problem does seem to be browser-related, you seem to be able to see the pdf image OK using IE9 with Win7 while neither @travellers nor my son, with the same setup, can see it. Can you confirm, Pat, that you can see the pdfs on my site (here) and @travellers' OK? What could account for the variability? Perhaps I should do a mini-survey of my contacts.

    So doesn't everyone have Adobe Reader? My likely users certainly will, so a solution that assumes this would be fine for me - but not perhaps for others.

  17. alanhowesworld
    Member
    Posted 2 years ago #

    An update. I asked a few friends if they could see my embedded pdf OK. I got amazingly variable results. Anyone using Mac/Safari, or Firefox, was OK (excepting my son with a very old FF). MSIE users showed a lot of variation, even with the same combination of IE version and OS. Only one (apart from Pat Hawks) using IE9 with Win7 found it worked OK - @travellers, myself (using IE9/VistaBiz) and two others found problems. Two using IE8 with XP Pro were OK, mixed results with IE7, not working with IE6 (only one).
    I'm mystified!

  18. Pat Hawks
    Member
    Plugin Author

    Posted 2 years ago #

    http://www.alanhowesworld.com/?page_id=32 Works fine for me in IE9 on Win7

    I wonder if this is a problem with security settings on IE. Perhaps IE is blocking iframe content from third party domains?

  19. Pat Hawks
    Member
    Plugin Author

    Posted 2 years ago #

    Can you post a screenshot of what, exactly, you see when it doesn't work in Internet Explorer?

  20. alanhowesworld
    Member
    Posted 2 years ago #

    OK, the screenshot is here. (Hope it works!) When I first navigate to the page in question, a "loading" bar appears. Some contacts report seeing the toolbar but no pdf image, some also get the slider but still no image - some get nothing!

    I tried altering my IE9 security settings and restarting IE - I enabled "Launch Programs and files in an IFRAME". It warned me my computer was at risk, but still did not show the pdf image.

    Of course I can, and will, put in a direct link to the pdf in a new window, which I am sure will suit 99% of my viewers - not sure why that had not occurred to me before!

  21. alanhowesworld
    Member
    Posted 2 years ago #

    Sorry, that link to the screenshot does not work. The link code text is obviously case-sensitive. Try this one instead. (Is there an easier way to do this?)

  22. UnkFrank
    Member
    Posted 2 years ago #

    Hi all
    Having the same problem with IE. I've tested with IE 7, 8, and 9 with no success. Also tried to test the page in this tool:
    http://netrenderer.com/index.php
    I'm going to try changing security settings and will let you know.
    thanks,
    Frank

  23. alanhowesworld
    Member
    Posted 2 years ago #

    Oh help! I've been away from this problem for some time - now I come back, EVERYTHING has changed. (And I have forgotten where I was ...) What have you done, Pat? The Changelog gives no clue.

    Now, the embedded pdf at http://www.alanhowesworld.com/cv/ is NOT working in Firefox (which always worked fine), but I find that it IS working with MSIE. Though what I see in MSIE is rather different from what I used to see in Firefox - I now get all six pages scrolling after each other, and instead of a right-justified toolbar above the window I get an Adobe-reader-style toolbar within the window, only visible on mouseover.

    Oh, and my son using MSIE9 with Win7 says he still can't see it! My faith in this plugin has plumetted ...

    That's a useful tool Frank - is there anything for other browsers?

  24. Pat Hawks
    Member
    Plugin Author

    Posted 2 years ago #

    I am speechless.

    http://www.alanhowesworld.com/cv/ is working just fine for me in Firefox, and any other browser I have installed.

    Since there are so many reported, but not easily reproducible, errors with this plugin, I am thinking about dropping support for it.

    It works fine for me and my clients.
    If it works for you, wonderful.
    If something else works better for you, by all means, use that. I'd love to know what you've found that works better,

  25. alanhowesworld
    Member
    Posted 2 years ago #

    I'm sorry Pat - it must be discouraging. I can only report what I find ...

  26. wycks
    Member
    Posted 2 years ago #

    I can confirm this a is a problem in ie9 due to the ie9 pdf plugin not being ready, since adobe released the acrobat x version.

    IE still sucks.

  27. wycks
    Member
    Posted 2 years ago #

    I found a solution, though it does not use dirty suds plugin, because this is an IE problem possibly related http://forums.adobe.com/thread/758489 .

    Instead of using [embed] I use <iframe> and it works fine in ie and on localhost.

    In order to embed pdf files I just use a custom function, so when you clcik the "insert into post" button it will wrap it in an iframe.

    you can see it here (and set width, height, etc accordingly).
    https://gist.github.com/2008010

  28. Pat Hawks
    Member
    Plugin Author

    Posted 2 years ago #

    The iframe method is unsuitable if there is a chance that a user would not have Adobe Reader installed. In these situations, the IE will prompt the user to download the PDF instead of displaying it inline.

  29. nfog
    Member
    Posted 2 years ago #

    I had the same problem and I think I just solved it.

    Check if your PDF file is named as non-alphabet(non English) name.
    If so, rename it in English.

    My PDF had originally Japanese characters. When I upload this file with foreign characters to media library on WordPress, it gave me URL of this pdf file with a bunch of "%%%" because I think it doesn't understand Japanese. Once I changed the name and resaved it, it should show just fine with IE.

    I hope this will help.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic