src/View/PdfView.php
public function renderer($config = null)
    {
        if ($config !== null) {
            $this->_renderer = new CakePdf($config);
        }

        return $this->_renderer;
    }
public function renderer($config = null)
    {
        if ($config !== null) {
            $this->_renderer = new CakePdf($config);
        }

        return $this->_renderer;
    }
public function renderer ( $ config = null ) { if ( $ config !== null ) { $ this -> _renderer = new CakePdf ( $ config ) ; } return $ this -> _renderer ; }
Return CakePdf instance, optionally set engine to be used

@param array $config Array of pdf configs. When empty CakePdf instance will be returned.
@return \CakePdf\Pdf\CakePdf
Return CakePdf instance optionally set engine to be used