Exporting as PDF does't save with correct .pdf extension #220
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing information
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pxlrbt/filament-excel#220
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello,
When i try to export as pdf it returns the file with .dompdf extension instead of .pdf
This is the code i'm using
@pxlrbt any idea how I can make it to save as .pdf ?
My bad, i've did it wrong the naming on ->withFilename
using
does the job
It's because of the
getDefaultExtension()logic:return $this->getWriterType() ? strtolower($this->getWriterType()) : 'xlsx';But as you figured out, you can work around this by adding an extension yourself.