public function getConvertFileShell($source, &$destination) { $multipage = array('pdf'); if (in_array($this->conversion[0], $multipage)) { if (!in_array($this->conversion[1], $multipage)) { $source .= '[0]'; } } return array($this->cmd, Shell::argOptions($this->cmd_options, $this->configuration, 1), $source, $destination); }
public function getConvertFileShell($source, &$destination) { $conf = $this->configuration; foreach ($this->cmd_options as $opt) { if ($opt['group'] === 'rasterize' && !isset($conf[$opt['name']])) { $conf[$opt['name']] = $opt['default']; } } $dimensions = $conf['output-width'] . '*' . $conf['output-height']; $zoom = 1; $shell = array($this->cmd, Shell::argOptions($this->cmd_options, $this->configuration, 1), realpath(__DIR__ . '/Resources/PhantomJs-rasterize.js'), strpos($source, '://') === FALSE ? 'file://' . $source : $source, $destination, $dimensions, $zoom); return $shell; }
public function getConvertFileShell($source, &$destination) { return array($this->cmd, Shell::argOptions($this->cmd_options, $this->configuration), $source, $destination); }
public function getConvertFileShell($source, &$destination) { $shell = array($this->cmd, Shell::argOptions($this->cmd_options, $this->configuration, 1), Shell::arg('f', Shell::SHELL_ARG_BASIC_SGL, $this->conversion[1] === 'tex' ? 'tex' : 'ascii'), $source, Shell::arg('>', Shell::SHELL_SAFE), $destination); return $shell; }
public function getConvertFileShell($source, &$destination) { return array($this->cmd['pandoc'], Shell::argOptions($this->cmd_options, $this->configuration), $source, Shell::arg('o', Shell::SHELL_ARG_BASIC_SGL, $destination)); }
public function getConvertFileShell($source, &$destination) { return array("cat", $source, Shell::arg('|', Shell::SHELL_SAFE), $this->cmd, Shell::argOptions($this->cmd_options, $this->configuration, 1), Shell::arg('f', Shell::SHELL_ARG_BASIC_SGL, $destination), Shell::arg('-', Shell::SHELL_SAFE)); }