priyanshu-pdf-creator

1.0.0 • Public • Published

priyanshu-pdf-creator

A Node.js package to generate PDFs of web pages using Puppeteer.

Installation

You can install the package via npm:

npm install priyanshu-pdf-creator

Usage

Here's how you can use this package in your Node.js code:

const generatePDF = require('priyanshu-pdf-creator');

// Example usage:
const url = 'https://example.com';
const outputPath = './example.pdf';

generatePDF(url, outputPath)
  .then(() => console.log('PDF generation complete.'))
  .catch((error) => console.error('Error generating PDF:', error));

License

This project is licensed under the Apache License 2.0

Readme

Keywords

Package Sidebar

Install

npm i priyanshu-pdf-creator

Weekly Downloads

0

Version

1.0.0

License

Apache-2.0

Unpacked Size

13 kB

Total Files

4

Last publish

Collaborators

  • priyanshuvapta