slickgrid-universal icon indicating copy to clipboard operation
slickgrid-universal copied to clipboard

feat(export): add new optional PDF Export package

Open ghiscoding opened this issue 1 month ago • 2 comments

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
  • [ ] groupCollapsedSymbol and expand aren't implemented yet
  • [ ] add docs note about data not always visible in export
  • [ ] what about groupingAggregatorRowText?
  • [ ] do we need didDrawPage callback?
image

ghiscoding avatar Jan 15 '26 20:01 ghiscoding