1
0
Fork 0
mirror of https://github.com/24eme/signaturepdf synced 2024-05-18 13:46:34 +02:00

deleting generated file from server

This commit is contained in:
Jb Lm 2022-03-31 14:59:48 +02:00
parent b432256ccc
commit be2d9a794c

View file

@ -255,6 +255,11 @@ $f3->route('GET /signature/@hash/pdf',
shell_exec(sprintf("pdftk %1\$s multibackground %2\$s output %3\$s && mv %3\$s %2\$s", $layers[$i], $newFile, str_replace('_signe.pdf', '_tmp_signe.pdf', $newFile)));
}
Web::instance()->send($newFile, null, 0, TRUE, $newFilename);
if($f3->get('DEBUG')) {
return;
}
unlink($newFile);
}
);