Grow your CSS skills. Land your dream job.

PDF viewer

  • # February 16, 2012 at 9:10 am

    Hi there,

    I’m currently making a website for a client where they require PDF files to be viewed/downloaded from their site. I’m not sure how you actually make the files downloadable from the server though, i was hoping someone would be able to point me in the right direction? I’m making the site in WordPress so i’m looking for a PHP snippet of some kind…i think?

    I’ve found quite a few resources online about turning html > PDF which looks great but it’s not quite what im looking for.

    Any help would be greatly appreciated.

    Many Thanks,

    Cameron

    # February 16, 2012 at 11:43 pm

    I used the

     Document Links Widget

    plugin on a couple client sites. It doesn’t offer pdf viewing, but makes the downloadable part quite easy.

    # February 16, 2012 at 11:43 pm

    Urp. Sorry for the ugly formatting there.

    # February 17, 2012 at 4:31 am

    Hey ccc630,

    Thanks for your suggestion, i appreciate the link. I’ll check that out. :)

    I’m still open to suggestions if anyone else could lend a hand?

    Cheers,

    # February 17, 2012 at 5:43 am

    Found a link that might make it easier to understand the effect im trying to go for.

    http://www.calloohcallaybar.com/wp-content/uploads/2011/09/DRINKSPDF.pdf

    # March 6, 2012 at 10:32 am

    So for any idiot out there like me that jumps without looking you’d realise that when you upload to WordPress using their media uploader and insert it into the post that way it provides that exact functionality of that link i added (in chrome anyway).

    My face sure is red after that one.

    # March 6, 2012 at 11:54 am

    I’m not really sure what you’re trying to do, but keep in mind that the way a PDF is viewed, depends on the local settings of the user.

    For example, I could have it set so that a link to any .PDF file will automatically be downloaded to my hard drive, but other users might have is configured in a way that is shows the PDF in the browser. Then, it also depends on WHICH browser is being used, that might make things look different too.

    Not sure if that’s what you were going after though. :)

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

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".