Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/humphreyja/sample-doc-flux-spreadsheets
Example of using DocFlux to generate spreadsheets with XLSX
https://github.com/humphreyja/sample-doc-flux-spreadsheets
Last synced: 9 days ago
JSON representation
Example of using DocFlux to generate spreadsheets with XLSX
- Host: GitHub
- URL: https://github.com/humphreyja/sample-doc-flux-spreadsheets
- Owner: humphreyja
- Created: 2018-02-02T20:59:00.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-10T20:33:51.000Z (almost 2 years ago)
- Last Synced: 2024-10-30T07:37:06.427Z (18 days ago)
- Language: JavaScript
- Homepage: https://humphreyja.github.io/sample-doc-flux-spreadsheets/
- Size: 12.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sample DocFlux Application for generating Spreadsheets and PDFs using the same react syntax components!.
This uses the [DocFlux](https://github.com/HarvestProfit/DocFlux) framework for generating documents. It has 2 examples. First is spreadsheet creating which uses [xlsx](https://github.com/SheetJS/js-xlsx). In this example I show how to define your own custom document generator (so if you wanted to generate a word doc or something you can follow a similar method as shown here. Also, this is just a copy of the actual [DocFlux-Spreadsheets](https://github.com/HarvestProfit/DocFlux-Spreadsheets) npm package, so use that instead of redefining your own.
Second, I show how you can create and style a pdf using the [DocFlux-PDFs](https://github.com/HarvestProfit/DocFlux-PDFs) npm package which uses pdfmake.Why would you want to use this? Because React is awesome. By defining your code in components, it allows for code reusing and promotes clean code. Also, you can test it, so that's why. If you're app is already built with React, then this is a breath of fresh air for crating documents.
Try it out [here](https://humphreyja.github.io/sample-doc-flux-spreadsheets/).