/**
  *  method to check if the current item is a pdf using the item mime type
  *  @param  void
  *  @return boolean (true when pdf will be watermarked, false when it will be not watermarked)
  */
 public function check()
 {
     if ($this->version->getFiletype() == 'application/pdf') {
         return true;
     } else {
         return false;
     }
 }
 /**
  * Downloads the file
  *
  * @param Docman_Version $version
  *
  * @return void
  */
 function download($version)
 {
     $version->preDownload($this->getItem(), $this->getUser());
     // Download the file
     parent::download($version->getFiletype(), $version->getFilesize(), $version->getPath());
 }