Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #6912

    coalcan
    Participant

    I’ve installed the latest version of the shortcodes using the auto update feature.
    I have the latest WP and here is what I get when I try to embed a PDF.
    Any idea why?

    https://drive.google.com/file/d/0B88ddg_0rZoyTWVrWmtPcTMwSmc/view?usp=sharing

    #7331

    sarahcrawford
    Participant

    I get that too. Really annoying! Any luck solving it yet?

    #7332

    sarahcrawford
    Participant

    Try this, worked for me

    – go to your doc in google
    – file
    – publish to web
    – go through steps you’d like
    – paste code a html

    Does need tweak insofar as display dimensions, but it’s there!

    #7339

    Intense Visions
    Keymaster

    The shortcode works by leveraging Google’s document viewer. The viewer is basically set up using a url like the following:

    https://docs.google.com/viewer?url=http://research.google.com/archive/bigtable-osdi06.pdf

    If you want to embed the document in a web page, you append &embedded=true to the url and place that url as the src attribute of an iframe.

    The problem is that Google’s document viewer doesn’t load PDFs on Google Drive. Our thought is that the PDF link for the file on Google Drive isn’t an actual PDF link. It is more of a link to the PDF viewer on Google Drive.

    In doing some research, we found that Google’s PDF viewer has a link you can use to embed the document. By understanding how this works, we were able to adapt the shortcode to not use the document viewer if the file is on Google Drive. In this case, it will use the Google Drive viewer instead.

    This change was included in version 2.7.0 which was released in February. If you are using this version or newer and are still having issues, there may be something similar going on.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.