CakePdf\Pdf\Engine\DomPdfEngine::output PHP Method

output() public method

Generates Pdf from html
public output ( ) : string
return string raw pdf data
    public function output()
    {
        $defaults = ['fontCache' => TMP, 'tempDir' => TMP];
        $options = (array) $this->config('options') + $defaults;
        $DomPDF = $this->_createInstance($options);
        $DomPDF->setPaper($this->_Pdf->pageSize(), $this->_Pdf->orientation());
        $DomPDF = $this->_render($this->_Pdf, $DomPDF);
        return $this->_output($DomPDF);
    }