Open ericmann opened 12 years ago
imagick can generate thumbnails of PDFs. i'm looking at this issue too as i have a client who needs to manage some documents. i'm thinking about storing an image as post meta. wordpress needs to pass an extra variable through the icon_dir filter and then we could grab that thumbnail with wp_get_attachment_image() for the document itself.
http://core.trac.wordpress.org/ticket/20205
since that isn't the case, i'm thinking the best we could do is check for the meta value and show the attachment_image for that image.
The Google Docs API automatically converts documents into images when displayed in the browser. It's possible to use this API feature to automatically generate a thumbnail of the first page of the file and store it in WP.