Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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!

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