\r
protected $out;\r
protected $in;\r
+ protected $uncompressed;\r
protected $log;\r
protected $log_pointer;\r
protected $infos;\r
$this->out = ROOT . '/docs/' . $this->document_id . '/';\r
$this->log = $this->out . 'log.txt';\r
$this->in = $this->out . 'original.pdf';\r
+ $this->uncompressed = $this->out . 'uncompressed.pdf';\r
$this->infos = $this->out . 'infos.txt';\r
$this->textes = $this->out . 'textes.txt';\r
$this->phperrors = $this->out . 'php.err';\r
public function copyOriginal($tmp_file)\r
{\r
move_uploaded_file($tmp_file, $this->in);\r
+ $this->uncompress();\r
+ }\r
+\r
+ public function uncompress()\r
+ {\r
+ $pdftk = new cubeCommandLine('pdftk');\r
+ $pdftk->setPath(CONVERTER_PATH);\r
+ $pdftk->setManualArg($this->in . ' output ' . $this->uncompressed . ' uncompress ');\r
+ $pdftk->execute();\r
+ $this->addToLog($pdftk);\r
}\r
\r
public function getInfos()\r