Closed klodeckl closed 9 years ago
This should be a TypoScript option, defaulting to Content-Disposition: attachment
; anything else would break backwards compatibility.
+1 for that TypoScript option as it will also make it easier to debug the generated PDF output when not set to attachment.
Sometimes the PDF should be displayed inline in the browser window instead of making a download. For that Classes/View/PdfView.php line 104 should be changed from header('Content-Disposition: attachment; filename="' . $this->fileNameUtility->convert($pageTitle) . '.pdf' . '"'); to header('Content-Disposition: inline; filename="' . $this->fileNameUtility->convert($pageTitle) . '.pdf' . '"‘); stehen.
A typoscript option for that would be great!