diff options
Diffstat (limited to 'libraries/classes/Pdf.php')
-rw-r--r-- | libraries/classes/Pdf.php | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/libraries/classes/Pdf.php b/libraries/classes/Pdf.php index 7b93ebf83f..7ad6626320 100644 --- a/libraries/classes/Pdf.php +++ b/libraries/classes/Pdf.php @@ -13,7 +13,6 @@ use TCPDF_FONTS; use function __; use function count; -use function strlen; use function strtr; /** @@ -137,21 +136,4 @@ class Pdf extends TCPDF )->getDisplay(); exit; } - - /** - * Sends file as a download to user. - * - * @param string $filename file name - */ - public function download($filename): void - { - $pdfData = $this->getPDFData(); - ResponseRenderer::getInstance()->disable(); - Core::downloadHeader( - $filename, - 'application/pdf', - strlen($pdfData) - ); - echo $pdfData; - } } |