3.1.7 • Published 1 month ago

@lesjoursfr/html-to-pdf v3.1.7

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

npm version QC Checks

@lesjoursfr/html-to-pdf

Generate PDF from HTML with simple API in Node.js.

What is this library?

This library use electron to generate PDF files from HTML.

Usage

Install the lib and add it as a dependency :

    npm install @lesjoursfr/html-to-pdf

Then put this in your code:

    const { PDF } = require("@lesjoursfr/html-to-pdf");

    const pdf = new PDF(target, output);
    pdf.render()
        .then(() => {
            console.log("PDF Generated Successfully!")
        })
        .catch((err) => {
            console.error("Failed to generate PDF because of ", err)
        });
    );

Parameters

  • target: The URL of the HTML page
  • output: The PDF file path
3.1.7

1 month ago

3.1.6

1 month ago

3.1.5

3 months ago

3.1.4

4 months ago

3.1.3

5 months ago

3.1.2

5 months ago

3.1.1

7 months ago

3.1.0

8 months ago

3.0.1

10 months ago

3.0.0

11 months ago

2.1.2

1 year ago

2.1.1

1 year ago

2.1.0

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

2.0.0

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago