Jump to:

3439 Posts in 1028 Topics by 869 members

Template Questions

SilverStripe Forums » Template Questions » embedding PDFs

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 660 Views
  • mirakelsey
    Community Member
    9 Posts

    embedding PDFs Link to this post

    Hey all, I'm trying to wrap up coding for the resources in the site I'm working on, and I just need a push in the right direction.

    I'm building a portfolio site for a writer. The idea is that one page is a list of articles, stories, etc she has written, and when you click on a link it takes you to a new page, still within the site, but with the pdf of said article embedded within the content area (underneath its title). I want to avoid using third-party tools like Scribd for this, so my client can upload everything on her site and not elsewhere.

    So my question is, is it possible to embed a PDF into the content of the page, and if so how do I code that into a resources template?

    (sorry if my explanation sounds garbled. I've attached mock layout sketches to help with that.)

    Attached Files
  • Invader_Zim
    Community Member
    141 Posts

    Re: embedding PDFs Link to this post


    Maybe this is what you are looking for: PDFObject
    From their site: "PDFObject is an easy-to-use method for dynamically embedding PDF files into HTML documents. It uses JavaScript to generate and inject a standards-friendly... bla bla"

    I've never used it (and I'm not related in any way with PDFObject), so I don't know how hard it will be to integrate that thing into a SilverStripe installation.


Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.