library/Haste/Pdf/PdfTemplate.php
public function saveToFile($strFolder, $strFilename = '', $blnSkipDb = false)
    {
        $strFilename = $strFilename ?: $this->buildFilename();

        // create if not exists
        new \Folder($strFolder);

        $this->objPdf->Output(TL_ROOT . '/' . trim($strFolder, '/') . '/' . $strFilename, 'F');

        // save database entity
        if (!$blnSkipDb)
        {
            $objFile = new \File(trim($strFolder, '/') . '/' . $strFilename);
            $objFile->close();
        }
    }
public function saveToFile($strFolder, $strFilename = '', $blnSkipDb = false)
    {
        $strFilename = $strFilename ?: $this->buildFilename();

        // create if not exists
        new \Folder($strFolder);

        $this->objPdf->Output(TL_ROOT . '/' . trim($strFolder, '/') . '/' . $strFilename, 'F');

        // save database entity
        if (!$blnSkipDb)
        {
            $objFile = new \File(trim($strFolder, '/') . '/' . $strFilename);
            $objFile->close();
        }
    }
public function saveToFile ( $ strFolder , $ strFilename = '' , $ blnSkipDb = false ) { $ strFilename = $ strFilename ? : $ this -> buildFilename ( ) ; // create if not exists new \ Folder ( $ strFolder ) ; $ this -> objPdf -> Output ( TL_ROOT . '/' . trim ( $ strFolder , '/' ) . '/' . $ strFilename , 'F' ) ; // save database entity if ( ! $ blnSkipDb ) { $ objFile = new \ File ( trim ( $ strFolder , '/' ) . '/' . $ strFilename ) ; $ objFile -> close ( ) ; } }
Saves the pdf to file

@param        $strFolder   string The folder as a path without TL_ROOT
@param string $strFilename The filename without the path

@throws \MpdfException
Saves the pdf to file