Vinodh Ram
Vinodh Ram

Reputation: 809

NodeJS - npm package - html-pdf alternate

I am creating a pdf from a static HTML code in nodejs using html-pdf npm package. But it is critical severity vulnerability. I want to change this package. Is there any package available to convert an HTML code to PDF on the server-side.

Upvotes: 0

Views: 940

Answers (1)

Praveen Maan453
Praveen Maan453

Reputation: 11

yes, sir... u can use Puppeteer. Puppeteer is a Node library which provides a high-level API to control Chrome or Chromium over the DevTools Protocol. Puppeteer runs headless by default but can be configured to run full (non-headless) Chrome or Chromium.

Upvotes: 1

Related Questions