html2pdf-node
mvn clean compile assembly:single
Last updated 3 years ago by marwan.hamdan .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install html2pdf-node 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.8                                ...           latest (3 years ago)

8 Versions

  • 1.0.8                                ...           3 years ago
  • 1.0.7                                ...           3 years ago
  • 1.0.6                                ...           3 years ago
  • 1.0.5                                ...           3 years ago
  • 1.0.4                                ...           3 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 3
Last Day 0
Last Week 3
Last Month 3
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |