Skip to content

kstathis/pdf-thumbn-gener1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

PDF 1st page thumbnail generator

Synopsis

A script that uses imagemagick to generate thumbnails of the first page of PDFs.

Scenario

We have a folder with PDFs. The script will generate a JPG file of the first page of every PDF, recursively, including any subfolders with PDFs. The filename of the JPG will be the same with the PDF.

Type

Bash script

Prerequisites

  • Imagemagick sudo apt-get install imagemagick

Usage

Make the script executable chmod +x pdf-thumbn-gener.sh

Run the script ./pdf-thumbn-gener.sh

Notes

  • The filenames and folder names can contain spaces, greek letters and special characters. They will be processed with no problem.
  • Every thumbnail will be saved in the same folder as the PDF.
  • The generator will show every conversion and at the end, it will display runtime for informational purpose.

Screenshots

Before After
before after

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages