Skip to content

vcasadei/url2pdf

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 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"
    }, ...
]

If you do not provide the title for a URL, the address of the URL will be used as a filename by replacing forbidden characters to underscore (_).

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

About

a batch url to pdf converter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 87.1%
  • JavaScript 12.9%