We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently temporary files are deleted via the __destruct method but this does not work when using PDFMerger through Laravel queues.
__destruct
More info: laravel/framework#18539
For this reason, it would be interesting to add a method that allows deleting temporary files manually for these use cases.
Something like this:
public function __destruct() { $this->cleanup(); } public function cleanup() { $oFilesystem = $this->oFilesystem; $this->tmpFiles->each(function ($filePath) use ($oFilesystem) { $oFilesystem->delete($filePath); }); } $pdfMerger = PDFMerger::init(); $pdfMerger->addPDF($path1, 'all'); $pdfMerger->addPDF($path2, 'all'); $pdfMerger->merge(); $pdfMerger->save('merged_result.pdf'); $pdfMerger->cleanup()
What do you think about this?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently temporary files are deleted via the
__destruct
method but this does not work when using PDFMerger through Laravel queues.More info:
laravel/framework#18539
For this reason, it would be interesting to add a method that allows deleting temporary files manually for these use cases.
Something like this:
What do you think about this?
The text was updated successfully, but these errors were encountered: