This PR adds a new feature to this library. The command below generates a PDF from the HTML file.
$ paper export examples/receipt.html
To create a HTML file from template:
$ paper create examples/receipt.html
To preview it:
$ paper examples/receipt.html
It's not a static conversion from HTML to PDF. It uses Electron for PDF generation, so you can use Riot or React or other JavaScript library in the HTML file.
[x] CLI
[x] export PDF
[x] create HTML from a template
[x] preview
[x] tests
[x] documentation
[ ] host on cdnjs I'll create another issue later.
This PR adds a new feature to this library. The command below generates a PDF from the HTML file.
To create a HTML file from template:
To preview it:
It's not a static conversion from HTML to PDF. It uses Electron for PDF generation, so you can use Riot or React or other JavaScript library in the HTML file.
host on cdnjsI'll create another issue later.