Skip to content

tind/pdf-thumbnails

Repository files navigation

TIND PDF Thumbnails

TIND PDF Thumbnails is a Node.js program to generate thumbnails from PDF files. It leverages the battle tested PDF.js library.

Usage

Clone the repository and run npm install to fetch dependencies. Run the program with node src/app.js. Here are the command line options and arguments:

Usage: pdf-thumbnails [options] <file...>

Generate image thumbnails for PDFs

Options:
  -o, --output <dir>       output directory
  -p, --pagenum <pagenum>  page number (default: 1)
  -w, --width <width>      width (default: 300)
  -q, --quality <quality>  jpeg quality (default: 1)
  -h, --help               display help for command

Test locally

node src/app.js -o a/ -F <STANDARD FONTs> test/Herja.pdf

# example: node src/app.js -o a/ -F /Users/arfat/Desktop/pdf-thumbnails/node_modules/pdfjs-dist/standard_fonts/ test/Herja.pdf

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •