ctpv/sh/prev/pdf.sh

13 lines
274 B
Bash
Raw Normal View History

2022-06-18 17:50:57 +02:00
# pdf: pdftoppm
2022-05-26 01:48:27 +02:00
pdf() {
2022-06-01 00:05:24 +02:00
pdftoppm -f 1 -l 1 \
-scale-to-x 1920 \
-scale-to-y -1 \
-singlefile \
-jpeg -tiffcompression jpeg \
-- "$f" "$cache_f" && mv -- "$cache_f.jpg" "$cache_f"
2022-06-12 09:57:20 +02:00
}
2022-05-26 01:48:27 +02:00
convert_and_show_image pdf