Added Email Logging for Emailnotification class
This commit is contained in:
@@ -113,6 +113,23 @@ class mfLayout {
|
||||
|
||||
$file = PDFOUTPUTPATH . "/$filename";
|
||||
|
||||
if(file_exists($file)) {
|
||||
$creator = mb_convert_encoding("Xinon Thetool", "UTF-16");
|
||||
|
||||
$pdf_contents = file_get_contents($file);
|
||||
if(!$pdf_contents) return $file;
|
||||
// /CreationDate (D:20250821155741+02\'00\')
|
||||
$pdf_contents = preg_replace('#/CreationDate \([^)]*\)'."\n".'#im', '', $pdf_contents, 1);
|
||||
// /Creator (<FE><FF>\0w\0k\0h\0t\0m\0l\0t\0o\0p\0d\0f\0 \00\0.\01\02\0.\06)\n
|
||||
$pdf_contents = preg_replace('#/Creator \([^)]*\)#im', "/Creator (\xfe\xff$creator)", $pdf_contents, 1);
|
||||
// /Producer (<FE><FF>\0Q\0t\0 \04\0.\08\0.\07)\n/CreationDate (D:20250821155741+02\'00\')\n
|
||||
$pdf_contents = preg_replace('#/Producer \([^)]*\)#im', "/Producer (\xfe\xff$creator)", $pdf_contents, 1);
|
||||
|
||||
if(!$pdf_contents) return $file;
|
||||
|
||||
file_put_contents($file, $pdf_contents);
|
||||
}
|
||||
|
||||
return $file;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user