CakePdf\Pdf\Engine\TexToPdfEngine::_getCommand PHP Method

_getCommand() protected method

Get the command to render a pdf
protected _getCommand ( ) : string
return string the command for generating the pdf
    protected function _getCommand()
    {
        $binary = $this->config('binary');
        if ($binary) {
            $this->_binary = $binary;
        }
        if (!is_executable($this->_binary)) {
            throw new Exception(sprintf('TeX compiler binary is not found or not executable: %s', $this->_binary));
        }
        $options = (array) $this->config('options');
        if (!is_dir($options['output-directory'])) {
            mkdir($options['output-directory']);
        }
        return $this->_buildCommand();
    }