public function generate()
	{
		$returnVar = $this->executeCommand($output);

		if ($returnVar == 0)
		{
			$this->contents = $this->getPDFContents();
		}
		else
		{
			throw new PDFException($output);
		}

		$this->removeTmpFiles();

		return $this;
	}
public function generate()
	{
		$returnVar = $this->executeCommand($output);

		if ($returnVar == 0)
		{
			$this->contents = $this->getPDFContents();
		}
		else
		{
			throw new PDFException($output);
		}

		$this->removeTmpFiles();

		return $this;
	}
public function generate ( ) { $ returnVar = $ this -> executeCommand ( $ output ) ; if ( $ returnVar == 0 ) { $ this -> contents = $ this -> getPDFContents ( ) ; } else { throw new PDFException ( $ output ) ; } $ this -> removeTmpFiles ( ) ; return $ this ; }
Generates the PDF and save the PDF content for the further use

@return string
@throws PDFException
Generates the PDF and save the PDF content for the further use