Drop-in .pdfList


Wordpress

29 Comments

Honestly, .pdf documents are quite a PITA because your average customer will tell you that uploading a bunch of .pdf files to a web server is all it takes to create a web version of a newspaper. Plus, .pdf documents take forever to download and/or display in one’s browser, so you are not very likely to make your site visitors very happy. Still, you can at least try to present your .pdf documents in a half-decent way, with thumbnails and all. Which of course takes a lot of work, opening a .pdf and creating a thumbnail and uploading both of them to the server and inserting the thumbnail along with a link to a .pdf … and all over again for the next one.

Thanks to Andrew Rickmann of Huddersfield, West Yorkshire and his Fun With Plugins Wordpress plugin generator I created a Wordpress plugin to do the boring part. All you have to do is upload all .pdf files that belong to a particular post or page and plugin will do the rest of the job. Like this:




Or this: Welcome magazine .pdf archive. Drop-in .pdfList relies on ImageMagick to create thumbnails every time it encounters a new .pdf file and will inform admin (and admin only) of thumbnails created. You don’t have to worry about installing ImageMagick. If your web server runs on linux, ImageMagick is probably already installed.

Usage

Put [ drop_in_pdf ] shortcode, where you want your .pdf thumbnails to be.

Up to 3 thumbnails (or less, depending on number of .pdf documents associated with particular post) will be displayed. To display more than 3 thumbnails, use

[ drop_in_pdf num=x] shortcode, where x is number of thumbnail you wish to display

You can display .pdf thumbnails of another post as well, just use

[ drop_in_pdf id=x] shortcode, where x is ID of another post with .pdf ducuments

And yes: [ drop_in_pdf id=y num=x] works, too.

Download drop-in-pdflist.zip or click this beautiful icon below

Download Drop-in .pdfList I had to do it, didn’t I? Throw in .zip download thumbnail shortcode handler as well. Icon used is from Aqua Gloss Icons set found at Deziner Folio. To place automaticaly created .zip thumbnail download icon(s), put:

[ drop_in_zip] shortcode in place. To suck .zips from another post, use id shortcode parameter.

Drop-in .pdfList is not an extremely complex plugin, so there’s no need for user settings panel and admin interface. If provided inline overlaping thumbnail style and dimensions don’t suit your needs, you can still tweak user settings in drop_in_pdflist.php file. Have fun! I mean: Have fun! Or else …

Tags: , , ,

29 Responses to “Drop-in .pdfList”

  1. Frank Lucas Says:

    Sounds real good, and I could use this but … where’s the download link?

  2. brut Says:

    I’m known to be cryptic sometimes, but when it says Download and then there’s this nice icon below and if you pass over with your mouse it says Download this … :-) Will try to make it more obvious, though.

  3. Tibor Says:

    Looks like very usefull, but in my case the post with the code snippet doesn’t show a thumbnail, but only a message (in red), saying the thumbnail has been generated.

    Any suggestions what I might be doing wrong?

  4. brut Says:

    Thanks to Tibor, there’s now a check for ImageMagick, so if plugin does not work, you will know why. In the mean time, search for more alternatives to .pdf thumbnail creation is on.

  5. Frank Lucas Says:

    Thanks for responding but there’s no icon near the word “Download.” I use Firefox 2.x; could that be the reason?

  6. Frank Lucas Says:

    PS: I placed a screencapture of this page (as I seeit) at:

    http://www.dogtrainersworkshop.com/transfer/no-download-icon.gif

  7. Frank Lucas Says:

    Oh, yes. I tried Internet Explorer, and the icon shows.

  8. brut Says:

    Thanks, wasn’t even aware that the icon might not show in some browsers, let alone Firefox, which I use most of the time. I owe you one!

  9. User Friendly PDFs on your Blog Using Wordpress | Top Blogger Says:

    [...] Drop-in PDFList takes your PDF and uses Imagemagick to create thumbnails of your attached PDF. All you have to do to use it is include the Quickcode in your post and the plugin handles the rest of the work. Uploading a PDF to a post gives the PDF that post number, allowing you to call PDFs from other posts with a simple Quicktag. [...]

  10. Daniel Kedinger Says:

    Great plugin idea! I usually have to do the process of making thumbs of my PDFs and it is just time consuming. I do have one question though. Is it possible to have a PHP template tag for the plugin. You can insert shortcode into a template directly.

    Thanks,
    Daniel
    daniel@crucedesign.com

  11. brut Says:

    Sorry, not yet. Will look into it.

  12. WordPress Plugin Releases for 12/06 | BlogBroker24-7 Says:

    [...] Drop-in .pdfList [...]

  13. WordPress Plugin Releases for 12/06 | HLBV Says:

    [...] Drop-in .pdfList [...]

  14. Garçon aka Martin Kopta » Blog Archive » links for 2008-12-14 Says:

    [...] brut digital art » Blog Archive » Drop-in .pdfList (tags: pdf plugins wp) [...]

  15. Monica Says:

    Hi! I was hoping you could help me. I am trying to use your plugin but it’s not working. The error shows that it’s trying to convert a pdf located at the relative path plus absolute path…. i.e. it’s adding one of them.. As a result, the plugin can’t find the pdf. I hope I explained that clearly. Any ideas? Please let me know. Thank you!

  16. Monica Says:

    Thank you so much for your help! This plugin is AWESOME!!!!!!
    Cheers!

  17. adam Says:

    Hey, I’m trying to use the plugin, and it’s not properly generating the images. The site is currently hosted on bluehost – I was wondering where your site is hosted?

  18. brut Says:

    It might be that your .pdf files are in CMYK (see this article). If that is the case, try to convert .pdf files to RGB before uploading.

  19. adam Says:

    I’m able to convert the files by hand (ssh, using the convert command) – i was just looking for a hosting recommendation.

  20. brut Says:

    can’t help you there as my hosting is kind of experimental, but I guess just about anything should do, even any of numerous free web hosting providers

  21. matthew Says:

    Hello,
    I am using your plugin and its delivering the following error as it should when I am logged into my wordpress install:
    ERROR, check for ImageMagick
    Code: 127 | ERROR, check for ImageMagick
    Code: 127 |

    I can see the drop shadow file which is clickable for the pdf but there is no thumbnail

    I have changed the convert path to ‘usr/bin/convert ‘ per my hosting company–dreamhost but that does not work either. any ideas?

  22. brut Says:

    try to change path to ‘/usr/bin/convert ‘

  23. matthew Says:

    OK now i have:
    ERROR, check for ImageMagick
    Code: 1 | ERROR, check for ImageMagick
    Code: 1 |

  24. brut Says:

    Returning error 1 would suggest ImageMagick failed to convert your .pdf. Alas it doesn’t say why, but you might want to try another .pdf, just to confirm the theory (maybe one of those attached to this very post). As a last resort, you can create your thumbnail by hand, at least that is what I do when everything else fails …

  25. horia Says:

    Great plugin, got everything working. But is there a way to automatically call the function in the loop? To include the thumbnails by default. Thanks

  26. brut Says:

    not quite sure, what you mean. Could you elaborate a little ..

  27. horia Says:

    I got it:

    , i wasn’t aware of the do_shortcode function.

    Thanks anyway, it’s working great also on wp 2.8.4

  28. horia Says:

    I got it:

    echo do_shortcode(‘[drop_in_pdf]‘); , i wasn’t aware of the do_shortcode function.

    Thanks anyway, it’s working great also on wp 2.8.4

  29. bea Says:

    thanks for this great plugin

Leave a Reply