Configurable PDF exports (#5641)

This commit is contained in:
Kevin Papst
2025-09-23 18:32:31 +02:00
committed by GitHub
parent 5d3e46cce2
commit 6d78c6ba36
107 changed files with 2428 additions and 1575 deletions

View File

@@ -25,7 +25,7 @@ trait PdfRendererTrait
protected function createPdfResponse(string $content, PdfContext $context): Response
{
$filename = $context->getOption('filename');
if (empty($filename)) {
if (!\is_string($filename) || empty($filename)) {
throw new \Exception('Empty PDF filename given');
}
$filename = FileHelper::convertToAsciiFilename($filename);