public function executeCommand(&$output)
	{
		$descriptorspec = array(
			0 => array("pipe", "r"), // stdin is a pipe that the child will read from
			1 => array("pipe", "w"), // stdout is a pipe that the child will write to
			2 => array("pipe", "w") // stderr is a pipe that the child will write to
		);

		$process = proc_open($this->cmd . ' ' . $this->getParams() . ' ' . $this->getInputSource() . ' ' . $this->getPDFPath(), $descriptorspec, $pipes);

		$output = stream_get_contents($pipes[1]) . stream_get_contents($pipes[2]);

		fclose($pipes[0]);
		fclose($pipes[1]);
		fclose($pipes[2]);

		return proc_close($process);
	}
public function executeCommand(&$output)
	{
		$descriptorspec = array(
			0 => array("pipe", "r"), // stdin is a pipe that the child will read from
			1 => array("pipe", "w"), // stdout is a pipe that the child will write to
			2 => array("pipe", "w") // stderr is a pipe that the child will write to
		);

		$process = proc_open($this->cmd . ' ' . $this->getParams() . ' ' . $this->getInputSource() . ' ' . $this->getPDFPath(), $descriptorspec, $pipes);

		$output = stream_get_contents($pipes[1]) . stream_get_contents($pipes[2]);

		fclose($pipes[0]);
		fclose($pipes[1]);
		fclose($pipes[2]);

		return proc_close($process);
	}
public function executeCommand ( & $ output ) { $ descriptorspec = array ( 0 => array ( "pipe" , "r" ) , // stdin is a pipe that the child will read from 1 => array ( "pipe" , "w" ) , // stdout is a pipe that the child will write to 2 => array ( "pipe" , "w" ) // stderr is a pipe that the child will write to ) ; $ process = proc_open ( $ this -> cmd . ' ' . $ this -> getParams ( ) . ' ' . $ this -> getInputSource ( ) . ' ' . $ this -> getPDFPath ( ) , $ descriptorspec , $ pipes ) ; $ output = stream_get_contents ( $ pipes [ 1 ] ) . stream_get_contents ( $ pipes [ 2 ] ) ; fclose ( $ pipes [ 0 ] ) ; fclose ( $ pipes [ 1 ] ) ; fclose ( $ pipes [ 2 ] ) ; return proc_close ( $ process ) ; }
Execute wkhtmltopdf command

@param array &$output

@return integer
Execute wkhtmltopdf command