[*] PDF : PDF could now be returned as a string
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11579 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -121,15 +121,18 @@ class PDFGeneratorCore extends TCPDF
|
||||
* Render the pdf file
|
||||
*
|
||||
* @param string $filename
|
||||
* @param boolean $inline
|
||||
* @throws PrestashopException
|
||||
*/
|
||||
public function render($filename)
|
||||
public function render($filename, $display = true)
|
||||
{
|
||||
if (empty($filename))
|
||||
throw new PrestashopException('Missing filename.');
|
||||
|
||||
$this->lastPage();
|
||||
$this->output($filename, 'I');
|
||||
|
||||
$output = $display ? 'I' : 'S';
|
||||
return $this->output($filename, $output);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user