You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.
$file_name = str_replace('/','\', $material->video_path);
$config = ['instanceConfigurator' => function($mpdf) {
$mpdf->SetWatermarkText('DRAFT');
$mpdf->showWatermarkText = true;
}];
PDF::loadFile(storage_path('app\'.$file_name), $config);
Hi I want to watermark existing pdf File, but I have some issues.
When I had tried to debug the config parameter , it gave me this error
"message": "Allowed memory size of 536870912 bytes exhausted (tried to allocate 264245248 bytes)",
"exception": "Symfony\Component\ErrorHandler\Error\FatalError",
"file": "C:\inetpub\wwwroot\moodle_bridge-master\vendor\niklasravnsborg\laravel-pdf\src\LaravelPdf\PdfWrapper.php",
"line": 28,
"trace": []
But if don't do debug at all, it gives 500 code. It did not return any error. i was confused. What did I do wrong? Please help
The text was updated successfully, but these errors were encountered: