/useful/trunk-1

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/useful/trunk-1

« back to all changes in this revision

Viewing changes to scripts/pdf2images.sh

  • Committer: Gustav Hartvigsson
  • Date: 2024-07-10 19:03:20 UTC
  • Revision ID: git-v1:5a81e50921d5c2c9c4e9c78d6293500f8de4b319
* pdf2images.sh:
   - Fixed usae message
* process_text_to_image.sh
  - Added sanity check
  - General logic fixes
  - Added --author argument
  - Fixed help message
  - formating.

* wav2mp4
  - minor formating errors
  - added sanity check
  - use /tmp/ instead of current folder for the temporary image

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
___SCALE=250
10
10
___HAS_OPTIPNG=1
11
11
 
12
 
function ___help () {
13
 
  echo "Convert a range of pages into pngs."
 
12
function ___usage () {
 
13
  echo "pdf2images.sh --- Convert a range of pdf pages into pngs."
14
14
  echo "USAGE:"
15
15
  echo "    pdf2images.sh <file>.pdf <first page> <last page>"
16
16
  echo ""
61
61
 
62
62
function ___parse_args () {
63
63
  if [ $# -eq 0 ]; then
64
 
    ___help
 
64
    ___usage
65
65
    exit 1
66
66
  fi
67
67
  
75
75
  if [ $# -ne 0 ]; then
76
76
    echo "Nummber of arguments missmatch."
77
77
    echo ""
78
 
    ___help
 
78
    ___usage
79
79
    exit 1
80
80
  fi
81
81
}