I want to create PDF exporter using Filament Export
I want to create an exporter, that will export a PDF format.
Is there a way i can use the default Exporter to build my own format?
Just Wondering if this is possible.
#❓┊help
5 Replies
Not that I know off, you can you a plugin already which allows direct to pdf
No default way but this it is should be easy to do
this is an example you can start from it:
https://filamentexamples.com/tutorial/table-bulkaction-download-selected-rows
Filament Examples
Table BulkActions: Download PDF From Selected Rows
You can add a custom BulkAction to the table, building a file from the selected table rows and download it immediately.
I thought there is a way I could use it like this $this->getTable()->render() to get HTML them convert it pdf.
Technically you could try that, but as we have a lot of tailwind styling that won't work within a PDF Rendering engine.... it will be a mess. You usually want to rebuild the table I'd say