I learnt how to generate dynamic pdf's using javascript, this example is a Receipt, suggested by an interviewer from Softtek
NodeJS:
- Dependencies:
- body-parser
- cors
- express
- html-pdf
- phantomjs-prebuilt
React:
- Dependencies:
- axios
- file-saver
-
Simultaneously:
-
In /client run "npm start"
-
In /server run "node index.js" or if nodemon run "nodemon index.js"
-
-
On localhost:3000/ fill the form
-
Click the "Download PDF" button
-
Behold the powerful dynamic receipt