about summary refs log tree commit diff
path: root/Completion/User/_pdf
blob: de373a355728bc33703de112b48c4832a5edeaaa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#compdef acroread pdf2dsc pdf2ps pdfimages pdfinfo pdftopbm pdftops pdftotext xpdf

local expl ext=''

# ghostscript:
#  pdf2dsc pdf2ps
# xpdf:
#  pdfimages pdfinfo pdftopbm pdftops pdftotext xpdf

if [[ "$1" == '-z' ]]; then
  ext='(|.gz|.Z)'
  shift
fi

_description files expl 'PDF file'
_files "$@" "$expl[@]" -g "*.(#i)pdf$ext"