~aodag/dotfiles

63d830c45d62ca55fd013b0ee00aef1e1d032f47 — Atsushi Odagiri 4 months ago 63eb6bf
preview pdf
1 files changed, 8 insertions(+), 8 deletions(-)

M config/ranger/scope.sh
M config/ranger/scope.sh => config/ranger/scope.sh +8 -8
@@ 160,14 160,14 @@ handle_image() {
            exit 1;;

        ## PDF
        # application/pdf)
        #     pdftoppm -f 1 -l 1 \
        #              -scale-to-x "${DEFAULT_SIZE%x*}" \
        #              -scale-to-y -1 \
        #              -singlefile \
        #              -jpeg -tiffcompression jpeg \
        #              -- "${FILE_PATH}" "${IMAGE_CACHE_PATH%.*}" \
        #         && exit 6 || exit 1;;
        application/pdf)
            pdftoppm -f 1 -l 1 \
                     -scale-to-x "${DEFAULT_SIZE%x*}" \
                     -scale-to-y -1 \
                     -singlefile \
                     -jpeg -tiffcompression jpeg \
                     -- "${FILE_PATH}" "${IMAGE_CACHE_PATH%.*}" \
                && exit 6 || exit 1;;


        ## ePub, MOBI, FB2 (using Calibre)