original_string: public function generate()
  	{
  		$returnVar = $this->executeCommand($output);
  
  		if ($returnVar == 0)
  		{
  			$this->contents = $this->getPDFContents();
  		}
  		else
  		{
  			throw new PDFException($output);
  		}
  
  		$this->removeTmpFiles();
  
  		return $this;
  	}
code: public function generate()
  	{
  		$returnVar = $this->executeCommand($output);
  
  		if ($returnVar == 0)
  		{
  			$this->contents = $this->getPDFContents();
  		}
  		else
  		{
  			throw new PDFException($output);
  		}
  
  		$this->removeTmpFiles();
  
  		return $this;
  	}
code_tokens: public function generate ( ) { $ returnVar = $ this -> executeCommand ( $ output ) ; if ( $ returnVar == 0 ) { $ this -> contents = $ this -> getPDFContents ( ) ; } else { throw new PDFException ( $ output ) ; } $ this -> removeTmpFiles ( ) ; return $ this ; }
docstring: Generates the PDF and save the PDF content for the further use
  
  @return string
  @throws PDFException
docstring_tokens: Generates the PDF and save the PDF content for the further use