• Resolved nicheellc

    (@nicheellc)


    I’d like an entire web page to display the contents of a .pdf document. Can someone give me an idea of how to do this in this theme? Do I need a plugin?

    Many thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • You will probably get a moderator say that you should have posted this to the Miscellaneous forum as this is more generalized and not related to my Celestial theme.

    However, while I’m here, I’m not aware of anything that can do what you are requesting. Best recommendation is to do a Google search on how to display PDF content in a web page. If you find something, it would be interesting to know if a way does exist because long long ago I remember someone asking about this when I used to design HTML templates.

    Thread Starter nicheellc

    (@nicheellc)

    Oh, sorry about that! There are ways to do this, I used the code generator provided on the following page (which was mentioned on an Adobe blog site): http://www.pdfobject.com/. The code seems to be great.

    I know that the code is working because I can see the pdf file when I look at a page full width preview – which seems to show it in an image box that is not large enough to show the entire document without scrolling. However, when I update the page, the image disappears altogether. So, I think this may be a theme-based question now.

    I added the pdf file to my media library and I am using its URL in my code. Obviously, I’m not sure of the problem, but I think I’m having trouble getting the image to display properly on the page because I need to add it to an image box that is large enough to display the 8.5 x 11 document or I need to add it to the body of the page/document.

    Does this make sense? Is this a theme based question?

    Many thanks!

    That Adobe solution uses javascript – you can’t add that to the content of a WP page. You’d have to add the JavaScript properly –
    http://codex.ww.wp.xz.cn/Using_Javascript

    How a PDF works in a browser is partly determined by the browser and partly by the user’s settings in the browser. So no, this is not a theme question – it’s not really even a WordPress question.

    One way you can do it in WP is by using a Google Docs plugin:

    http://ww.wp.xz.cn/plugins/google-document-embedder/

    Thread Starter nicheellc

    (@nicheellc)

    Thank you so much for your help!

    Is this the case, even though I used the HTML standard markup option on the code generator, to purposely avoid using Javascript (as described here: http://www.pdfobject.com/markup/index.php)?

    Many thanks for your patience and assistance!

    Thread Starter nicheellc

    (@nicheellc)

    WPyogi,

    Thanks so much! Your recommendation worked great! I’ll stop posting non-theme and non-WP inquiries now. But, I really appreciate the assistance though!

    Cool – it’s hard to know what’s what sometimes, but I’m glad that worked.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Creating a page for .pdf docs?’ is closed to new replies.