pdf preview now first page

This commit is contained in:
Luke Smith 2018-07-08 13:29:31 -04:00
parent 16c66e574f
commit 90f985a1f1

View file

@ -75,8 +75,9 @@ case "$extension" in
try 7z -p l "$path" && { dump | trim; exit 0; } || exit 1;;
# PDF documents:
pdf)
try pdftotext -l 10 -nopgbrk -q "$path" - && \
{ dump | trim | fmt -s -w $width; exit 0; } || exit 1;;
try pdftoppm -jpeg -singlefile "$path" "${cached//.jpg}" && exit 6 || exit 1;;
#try pdftotext -l 10 -nopgbrk -q "$path" - && \
#{ dump | trim | fmt -s -w $width; exit 0; } || exit 1;;
# BitTorrent Files
torrent)
try transmission-show "$path" && { dump | trim; exit 5; } || exit 1;;