Would like to avoid having Lightbox go into a loop trying to display a pdf; I tried
$file = get_current_file();
if ($file->hasThumbnail())
{
echo '<p><em>Click the Image for Full Size</em></p>';
echo display_files_for_item(array('linkAttributes'=>array('rel'=>'lightbox[gallery]')));
}
and it works for jpg's but the fact that the pdf has no thumbnails isn't being detected. There must be some simple method, but for the life of me...

