Replies: 6 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? |
Beta Was this translation helpful? Give feedback.
-
|
Did you try the approach mentioned above? |
Beta Was this translation helpful? Give feedback.
-
|
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 |
Beta Was this translation helpful? Give feedback.
-
|
Either to a ServiceProvider (first example) or your page class (third example) |
Beta Was this translation helpful? Give feedback.
-
|
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? |
Beta Was this translation helpful? Give feedback.
-
|
Sorry, as I said, I never used the PDF export before, so I can't really help with this. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
From Discord:
Beta Was this translation helpful? Give feedback.
All reactions