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

_buildCommand() protected method

Builds the command.
protected _buildCommand ( ) : string
return string The command with params and options.
    protected function _buildCommand()
    {
        $command = $this->_binary;
        $options = (array) $this->config('options');
        foreach ($options as $key => $value) {
            if (empty($value)) {
                continue;
            } elseif ($value === true) {
                $command .= ' --' . $key;
            } else {
                $command .= sprintf(' --%s %s', $key, escapeshellarg($value));
            }
        }
        return $command;
    }