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;; try 7z -p l "$path" && { dump | trim; exit 0; } || exit 1;;
# PDF documents: # PDF documents:
pdf) pdf)
try pdftotext -l 10 -nopgbrk -q "$path" - && \ try pdftoppm -jpeg -singlefile "$path" "${cached//.jpg}" && exit 6 || exit 1;;
{ dump | trim | fmt -s -w $width; exit 0; } || exit 1;; #try pdftotext -l 10 -nopgbrk -q "$path" - && \
#{ dump | trim | fmt -s -w $width; exit 0; } || exit 1;;
# BitTorrent Files # BitTorrent Files
torrent) torrent)
try transmission-show "$path" && { dump | trim; exit 5; } || exit 1;; try transmission-show "$path" && { dump | trim; exit 5; } || exit 1;;