slickgrid-universal
slickgrid-universal copied to clipboard
feat(export): add new optional PDF Export package
vibe coding with copilot to add PDF Export as an optional package/resource.
At first I tried to tinypdf (first commit) but unfortunately it didn't support unicode/emoji and even with simple char like the Euro symbol (unicode). So I later migrated to jsPDF and that is a bigger library but it works with unicode/emojis so let's use that and it's quite popular (5 millions dl/week)
TODOs
- [x] working demo (Example02, and Example03)
- [ ] add demo to all frameworks as well
- [ ] need example with colspan/rowspan
- [x] should work with unicode/emoji
- [x] add unit tests
- [x] add docs
- [x] add to Grid Menu when enabled
- [x] add to Context Menu when enabled
- [ ]
groupCollapsedSymboland expand aren't implemented yet - [ ] add docs note about data not always visible in export
- [ ] what about
groupingAggregatorRowText? - [ ] do we need
didDrawPagecallback?