Skip to content

GXiang314/url2pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Url2Pdf Node Project

a batch url to pdf converter

Prerequisites

  • Node 18 LTS

Quick Start

Prepare data.json to input

cp input/data.example.json input/data.json

schema:

[
    {
        "url": "<fill>",
        "title": "pdf title"
    }, ...
]

Installation

npm ci

Run/Development Mode

npm run dev

will be output a directory to outputs

input/
├── data.json
outputs/
├── 171555555555
│   ├── 1.pdf
│   ├── 2.pdf
│   └── ...

Build

npm run build

Production Mode

npm start

npm run build before run this command run this command will be output a directory to outputs