F
Filament3mo ago
Fazaa

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
Matthew3mo 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
toeknee3mo ago
as above, I used mPDF recently over dompdf, there is also an export plugin with PDF Support.
Fazaa
FazaaOP3mo ago
what is mPDF? is that a plugin?
toeknee
toeknee3mo ago
It is a php composer Library
toeknee
toeknee3mo 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
FazaaOP3mo 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
toeknee3mo 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
FazaaOP3mo 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
Fazaa3mo ago
by using DomPdf
toeknee
toeknee3mo 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?