Generating Current View for PDF
Hi,
This is kinda part of filament from my point of view that's why i decided to ask here if anyone knows solution.
I am trying to develop action from filament, which will generate PDF from current view.
So action contains basic stuff
And this is my livewire component with js to send current page HTML
And it works, PDF gets generated but issue arises that it is generated for tablet resolution and it is really narrow, any idea how can i get from filament html that is from my viewpoint? Is it possible or am I overeaching ?
Btw, I am using spaties laravel pdf package.
3 Replies
if you mean the issue is the sizes of your screen then you might just get it using js
window.width
or similar js apis and then pass it to the PDF generation library as the file aspects
what are the default file size/dimensions for you PDF library?These are my dimensions that i have set up via browsershot if we meant on same thing
This is my end result (It's PDF view)
