print action

how to add print action in filament ?
6 Replies
awcodes
awcodes2mo ago
Action::make(‘print’)->alpineClickHandler(‘window.print()’)
alonemz
alonemz2mo ago
yes but this makes print the current page i want print like invoice kinda
Dennis Koch
Dennis Koch2mo ago
What you want is to generate a PDF. That’s not Filament specific , was asked here some times so you should find some info otherwise there should be Laravel tutorials for it.
alonemz
alonemz2mo ago
Oh yah ok Sir i have add new question sir related to filament can you see that https://discord.com/channels/883083792112300104/1244701110586048613
awcodes
awcodes2mo ago
Sorry, thought that’s what you were asking for.