From ba8fe17d6a73ccef37e50545973581616049e9ef Mon Sep 17 00:00:00 2001 From: Sergej Date: Fri, 17 Nov 2017 16:51:08 +0100 Subject: [PATCH] Test inline pdf --- modules/custom/bandi/src/Controller/PdfController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/custom/bandi/src/Controller/PdfController.php b/modules/custom/bandi/src/Controller/PdfController.php index c498409e5..2c269e6b7 100644 --- a/modules/custom/bandi/src/Controller/PdfController.php +++ b/modules/custom/bandi/src/Controller/PdfController.php @@ -39,7 +39,7 @@ public function view(EntityInterface $node, $view_mode = 'pdf', $langcode = NULL $mpdf->SetHTMLFooter(''); $mpdf->WriteHTML($output); - $content = $mpdf->Output($this->title($node) . '.pdf', Destination::DOWNLOAD); + $content = $mpdf->Output($this->title($node) . '.pdf', Destination::INLINE); $headers = [ 'Content-Type: application/pdf',