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

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

		$this->removeTmpFiles();

		return $this;
	}