We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 117bf4a + 64609de commit a1fd085Copy full SHA for a1fd085
1 file changed
src/PDF.php
@@ -347,6 +347,10 @@ private function make(array $options) : string
347
348
if ($option == 'headerContent' || $option == 'footerContent') {
349
$tmpfile = tmpfile();
350
+
351
+ //Create a long term reference to file handle to avoid garbage collection
352
+ $this->{$option} = $tmpfile;
353
354
fwrite($tmpfile, $value);
355
356
$option = str_replace('Content', 'Template', $option);
0 commit comments