require_once 'System.php';
+ $file = $this->getStoreName();
+
+ if(!file_exists($file)){
+ return false;
+ }
+
switch ($this->mimetype) {
case 'application/pdf' :
- $file = $this->getStoreName();
-
- if(!file_exists($file)){
- return false;
- }
-
$pdftk = System::which('pdftk');
if (empty($pdftk)) {