diff --git a/EMS/submission-bundle/src/Handler/PdfHandler.php b/EMS/submission-bundle/src/Handler/PdfHandler.php index 678a26669..a54e99368 100644 --- a/EMS/submission-bundle/src/Handler/PdfHandler.php +++ b/EMS/submission-bundle/src/Handler/PdfHandler.php @@ -24,7 +24,7 @@ public function handle(HandleRequestInterface $handleRequest): HandleResponseInt { try { $endpoint = $this->twigRenderer->renderEndpointJSON($handleRequest); - $html = $this->twigRenderer->renderMessageBlock($handleRequest, 'pdfHtml') ?? ''; + $html = $this->twigRenderer->renderMessageBlock($handleRequest, 'pdfHtml') ?? $handleRequest->getMessage(); $pdfRequest = new PdfRequest($endpoint, $html); $pdfOutput = $this->pdfPrinter->getPdfOutput($pdfRequest->getPdf(), $pdfRequest->getPdfOptions());