public function output()
	{
		if ($this->html)
		{
			return $this->snappy->getOutputFromHtml($this->html, $this->options);
		}

		if ($this->file)
		{
			return $this->snappy->getOutput($this->file, $this->options);
		}

		throw new \InvalidArgumentException('PDF Generator requires a html or file in order to produce output.');
    }
public function output()
	{
		if ($this->html)
		{
			return $this->snappy->getOutputFromHtml($this->html, $this->options);
		}

		if ($this->file)
		{
			return $this->snappy->getOutput($this->file, $this->options);
		}

		throw new \InvalidArgumentException('PDF Generator requires a html or file in order to produce output.');
    }
public function output ( ) { if ( $ this -> html ) { return $ this -> snappy -> getOutputFromHtml ( $ this -> html , $ this -> options ) ; } if ( $ this -> file ) { return $ this -> snappy -> getOutput ( $ this -> file , $ this -> options ) ; } throw new \ InvalidArgumentException ( 'PDF Generator requires a html or file in order to produce output.' ) ; }
Output the PDF as a string.

@return string The rendered PDF as string
@throws \InvalidArgumentException
Output the PDF as a string .