0.1.2 • Published 4 years ago

pdf-from-html v0.1.2

Weekly downloads
33
License
GPL-3.0-only
Repository
github
Last release
4 years ago

pdf-from-html is a nodejs library to transform an html (possibly from markdown-it) in a PDF.

Installation

Install it with npm or yarn.

$ npm install --dev pdf-from-html
# or
$ yarn add --dev pdf-from-html

Usage

It's possible to use it from command line

$ pdf-from-html docs/ somefile.html

as npm script

"scripts": {
    "pdf": "pdf-from-html docs/ somefile.html"
},

or as part of your nodejs app

import { generatePDF } from 'pdf-from-html';
// or
// const generatePDF = require('pdf-from-html').generatePDF;
// and then just call the method
generatePDF(outputDir: string, outputFileName: string, inputContent: string);

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

Apache-2.0

Credits

  • Icons made by Freepik from www.flaticon.com
0.1.2

4 years ago

0.1.2-beta.3

4 years ago

0.1.2-beta.2

4 years ago

0.1.2-beta.1

4 years ago

0.1.2-beta

4 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.1.0-beta.5

5 years ago

0.1.0-beta.4

5 years ago

0.1.0-beta.3

5 years ago

0.1.0-beta.2

5 years ago

0.1.0-beta.1

5 years ago

0.1.0-beta.0

5 years ago