public function save($sPath, $sFilename)
    {
        if (!is_writable($sPath)) {
            $this->setError('Cannot write to ' . $sPath);
            return false;
        }

        $this->oDomPdf->render();
        $bResult = (bool) file_put_contents(
            rtrim($sPath, '/') . '/' . $sFilename,
            $this->oDomPdf->output()
        );

        $this->reset();

        return $bResult;
    }
public function save($sPath, $sFilename)
    {
        if (!is_writable($sPath)) {
            $this->setError('Cannot write to ' . $sPath);
            return false;
        }

        $this->oDomPdf->render();
        $bResult = (bool) file_put_contents(
            rtrim($sPath, '/') . '/' . $sFilename,
            $this->oDomPdf->output()
        );

        $this->reset();

        return $bResult;
    }
public function save ( $ sPath , $ sFilename ) { if ( ! is_writable ( $ sPath ) ) { $ this -> setError ( 'Cannot write to ' . $ sPath ) ; return false ; } $ this -> oDomPdf -> render ( ) ; $ bResult = ( bool ) file_put_contents ( rtrim ( $ sPath , '/' ) . '/' . $ sFilename , $ this -> oDomPdf -> output ( ) ) ; $ this -> reset ( ) ; return $ bResult ; }
Saves a PDF to disk

@param  string $sPath     The path to save to
@param  string $sFilename The filename to give the PDF

@return boolean
Saves a PDF to disk