We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fd59e6 commit 75119f2Copy full SHA for 75119f2
src/Spiritix/HtmlToPdf/Output/EmbedOutput.php
@@ -43,7 +43,7 @@ public function embed($fileName, $exit = true)
43
header('Pragme: public');
44
header('Expires: Sat, 26 Jul 1997 05:00:00 GMT');
45
header('Last-Modified: ' . gmdate('D, d m Y H:i:s') . ' GMT');
46
- header('Content-Length: ' . mb_strlen($this->getPdfData()));
+ header('Content-Length: ' . strlen($this->getPdfData()));
47
header('Content-Disposition: inline; filename="' . basename($fileName) .'";');
48
49
echo $this->getPdfData();
@@ -52,4 +52,4 @@ public function embed($fileName, $exit = true)
52
exit;
53
}
54
55
-}
+}
0 commit comments