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();
        }
    }