I'm the PDF version
#set($idcount = $context.getRequestParameter("idcount"))
#if(!$idcount)
#set($idcount = "")
#end
$#set($assetid = $context.getRequestParameter('assetid'))
#if($val && $val != "")
#set( $foundrow = $mediaarchive.getData("pdftext", $val))
#end
#if(!$assetid && $foundrow)
#set($assetid = $foundrow.assetid)
#end
#set( $pdf = $mediaarchive.getAsset($assetid))
$foundrow
$pdf
#if($val && $val!="" && $pdf && !$context.getRequestParameter("readonly") == "true")
#end
#set( $type = $mediaarchive.getMediaRenderType($foundrow.fileFormat))
$context.putPageValue("cell", $foundrow)
$context.putPageValue("hit", $foundrow)
$context.putPageValue("showdetails", "false")
$context.putPageValue("thumbsize", "thumb")
#set( $sourcepath = $foundrow.sourcePath )
##$pages.include("${apphome}/components/results/thumbnails/${type}.html", $context)
#if( $type == "audio")
$foundrow.name
#end