Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thatbeautifuldream/url2pdf
📸 Capturing Website Screenshots in PDF, PNG, JPG using Node.js, Puppeteer!
https://github.com/thatbeautifuldream/url2pdf
cli javascript nodejs pdf puppeteer url2pdf
Last synced: 19 days ago
JSON representation
📸 Capturing Website Screenshots in PDF, PNG, JPG using Node.js, Puppeteer!
- Host: GitHub
- URL: https://github.com/thatbeautifuldream/url2pdf
- Owner: thatbeautifuldream
- Created: 2022-03-17T20:41:29.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-17T22:09:30.000Z (almost 3 years ago)
- Last Synced: 2025-01-12T17:38:15.908Z (about 1 month ago)
- Topics: cli, javascript, nodejs, pdf, puppeteer, url2pdf
- Language: JavaScript
- Homepage: https://milind.live/url2pdf
- Size: 36.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 📸 url2pdf
Puppeteer based project for `url` to `png/jpg/pdf` conversion.
## Tools
- NodeJs
- Puppeteer## Requirements
In order to utilise this project you need to have the following installed locally:
- [puppeteer](https://npmjs.com/puppeteer)
To install the dependencies locally run:
```js
npm install dependencies
```## Usage
In order for the conversion to pass, you will need to configure the script with the following parameters:
```bash
node capture
```- Add the web addresses in the `` section of the node command.
- Add the output file extension in the `` section of the node command.```bash
node capture https://www.google.com png
```## Demo
```bash
node capture https://google.com png
```Screenshot