public function getPdfFilename()
    {
        $baseName = sprintf('%s-%s', $this->owner->URLSegment, $this->owner->ID);

        $folderPath = $this->owner->config()->get('generated_pdf_path');
        if ($folderPath[0] !== '/') {
            $folderPath = File::join_paths(Director::publicFolder(), $folderPath);
        }

        return sprintf('%s/%s.pdf', $folderPath, $baseName);
    }