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)) {
continue;
}
- print_R($i);exit;
-
+ $ret = (empty($matches[1])) ? false : $matches[1];
+ break;
}
break;