-
-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Basic PDF support #80
Comments
@pxlrbt i'm using this on my resource table ->headerActions([
ExportAction::make('pdf')
->label('PDF')
->color('gray')
->exports([
ExcelExport::make()->withWriterType(\Maatwebsite\Excel\Excel::TCPDF)->label('PDF')->fromTable()->withFilename('my-resource.pdf'),
])
]) how can i change that to provide the pdf orientation when it exports to pdf my table? |
Did you try the approach mentioned above? |
I don't know where exactly to use the code above, and I'm not using a custom export as you see my action above |
Either to a ServiceProvider (first example) or your page class (third example) |
thanks, works using ServiceProvider, but now i have another issues 🤦 the table column widths get too big and the pdf doesn't look fine.. any idea if I can shrink those inside the pdf? |
Sorry, as I said, I never used the PDF export before, so I can't really help with this. |
From Discord:
The text was updated successfully, but these errors were encountered: