• Hi, I know that you can link to a pdf document in WP, but I want to actually display the document on the page.

    Can this be done and if yes,how ?

    Would really appreciate a quick answer as I have to complete this task today. Thank YOU !

Viewing 8 replies - 16 through 23 (of 23 total)
  • Thread Starter Ballet News Admin

    (@ballet-news-admin)

    That’s what I did before I posted here. It does not work

    Moderator cubecolour

    (@numeeja)

    The code works perfectly for me on a test site I’ve been messing around with. No plugin required.

    I uploaded the pdf via the media uploader, copied the file’s URL to the clipboard & pasted it into the line as the embed source, so the line I put in was:
    <embed src="https://sample.bandrocks.co.uk/files/2010/09/Marketing.pdf" width="640" height="480"/>

    I’ve only viewed it in Firefox OSX so far, so I don’t know yet whether other browsers may not understand it.

    Can you see the embedded pdf on the following page?

    https://sample.bandrocks.co.uk/about/

    Thread Starter Ballet News Admin

    (@ballet-news-admin)

    thank you. Yes, I can see the embeded pdf on the link you sent.

    But still, in IE8, it does not work. It has to work across all browsers to be any good for my readers.

    Thread Starter Ballet News Admin

    (@ballet-news-admin)

    ps when I use that code, all I get is a link to the pdf, not the embeded pdf itself. That’s why we tried two plugins and neither worked. On some browsers they may work, but unless they work over all browswer and IE8 since that is mine, it’s hopeless.

    Surely WP has overcome this issue ?

    Moderator cubecolour

    (@numeeja)

    I don’t believe it is fair to consider this a WordPress Issue.

    I’ve just had a look at the sample page I posted on my daughter’s netbook running windows7 with IE8 & adobe reader installed and I can see the embedded pdf.

    cubecolour & Rahul, you’re advice throughout this post was excellent. So rather than start my own thread I thought I would continue this one.

    I have built a timeline and would like to display it similar to this one;
    https://www.monitoraudio.co.uk/biography/timeline

    Which I think has been presented using shockwave.

    So far I have tried two approaches;
    1. I have uploaded my timeline as a PDF to my web server, its dimensions are 3363?×?595. Using the code you provided the PDF does not appear, instead I have a striped box in the dimensions of my PDF, but without any content and at the centre ‘click to download plugin’.

    2. I have used the WYSWYG ‘Insert /Edit embedded media’ icon and embedded the PDF as a Shockwave element. Sadly this produces the same result.

    In each case there is no plugin available to download.

    Do it like this

    <iframe src=”https://docs.google.com/gview?url=https://thebookhousepub.com/menus/food2.pdf&embedded=true&#8221; style=”width:880px; height:1200px;” frameborder=”0″></iframe>

    the advice given cubecolour and Rahul is sound. The issues experienced I would say is WP related.

    Why?

    IF you switch from HTML to VISUAL mode after writing in your code, WP automatically changes your code to the shockwave plugin display – thereby breaking it.

    My suggestion?

    Complete your post, and RIGHT before publishing, switch to HTML mode and insert the embed code as directed. Hit “Update” WHILE IN HTML MODE and you should be fine. Do NOT update the post while in VISUAL mode.

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘PDF display in WordPress 3’ is closed to new replies.