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
Solution:
by using DomPdf
Jump to solution
10 Replies
Matthew
Matthew2w ago
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.
toeknee
toeknee2w ago
as above, I used mPDF recently over dompdf, there is also an export plugin with PDF Support.
Fazaa
FazaaOP2w ago
what is mPDF? is that a plugin?
toeknee
toeknee2w ago
It is a php composer Library
toeknee
toeknee2w ago
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.
Fazaa
FazaaOP2w ago
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?
toeknee
toeknee2w ago
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
Fazaa
FazaaOP2w ago
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
Fazaa
Fazaa2w ago
by using DomPdf
toeknee
toeknee2w ago
So you want only 1 of the records Just add a row Action then? Which returns the DomPDF

Did you find this page helpful?