A Node.js package to generate PDFs of web pages using Puppeteer.
You can install the package via npm:
npm install priyanshu-pdf-creator
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));
This project is licensed under the Apache License 2.0