registry->get('GV_RootPath') . 'tmp/tmp_doc_' . time() . mt_rand(10000, 99999) . '.pdf'; $cmd = sprintf('%s --format=pdf --stdout %s > %s' , $this->binary , $this->escapeshellargs($origine->getPathname()) , $this->escapeshellargs($dest) ); $this->shell_cmd($cmd); return $this; } }