caxlsx / caxlsx_rails

A Rails plugin to provide templates for the axlsx gem
MIT License
744 stars 84 forks source link

Save as PDF? #84

Closed cwilliamsnh closed 7 years ago

cwilliamsnh commented 7 years ago

Is there a way to save a spreadsheet/workbook as a PDF?

straydogstudio commented 7 years ago

Not within Axlsx. You'll either want to create a table in a pdf with something like Prawn, or save a file and convert it to pdf using some utility, which there should be something.

It's older (I used it within Rails 3 apps) but you can look at MetaReports. That was my attempt to create a meta data structure for common table reports. Once I put the data in the structure, I could convert it to html, pdf, or xlsx. You could make your own structure and do the same. The default templates might save you time if you go that route.