Bulk Action Export to PDF
i want to export all these Transaksi Table to pdf, all i know is filament only have plugin that we can export the table to CSV
but i dont find any plugin can export to pdf
![No description](https://cdn.answeroverflow.com/1333997656988713052/image.png)
10 Replies
You need to use a view, and then use something like DomPDF to generate the PDF.
Suspect there are tools out there to automate CSV type output into a view.
as above, I used mPDF recently over dompdf, there is also an export plugin with PDF Support.
what is mPDF? is that a plugin?
It is a php composer Library
GitHub
GitHub - mccarlosen/laravel-mpdf: Generate PDFs in Laravel with Mpdf.
Generate PDFs in Laravel with Mpdf. Contribute to mccarlosen/laravel-mpdf development by creating an account on GitHub.
ohh alright thanks i'll try it,
i already use DomPDF and its good for bulk action thanks for this, but now i need to export to pdf only one row, like im making a invoice, can i?
So you want to build a PDF for each row right?
Just use a bulk action with a function that adds them all to a single zip file and downloads them
yeaa i already found the solution by using DomPDF, but now i want to only export one row for making the invoice can i ??
Solution
by using DomPdf
So you want only 1 of the records
Just add a row Action then?
Which returns the DomPDF