public function render($action = null, $layout = null) {
		$this->viewPath .= DS . 'Pdf';

		$content = parent::render($action, false);
		if ($this->response->type() == 'text/html') {
			return $content;
		}

		$content = $this->tcpdf->Output('', 'S');
		$this->Blocks->set('content', $content);
		$fileName = $this->getFileName();
		$fileName .= '.pdf';
		$this->response->download($fileName);

		return $this->Blocks->get('content');
	}