pdf preview now first page
This commit is contained in:
parent
16c66e574f
commit
90f985a1f1
1 changed files with 3 additions and 2 deletions
|
@ -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;;
|
||||
|
|
Loading…
Reference in a new issue