1.0.8 • Published 7 years ago

html2pdf-node v1.0.8

Weekly downloads
8
License
MIT
Repository
github
Last release
7 years ago

This is a node interface to openhtmltopdf (https://github.com/danfickle/openhtmltopdf) It requires JRE to be installed.

How to use

npm install html2pdf-node

const html2pdf = require("html2pdf-node");
const htmlSample = `<p>Hello</p>`;
html2pdf.generatePdfOfHtml(htmlSample)
        .then(pdfFilePath=>{
            console.log(pdfFilePath)
        })
        .catch(err=>{});

NOTES

This module contains java archive file (jar) with needed dependencies Ready to be used, you need JRE installed.

You can update the java code and build with npm run build-java-app

Run the JAVA APP

java -jar app.jar input_html_file_path output_pdf_file_path

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago