From 2140ab51deed88e90eafebf9520fa5f9995dc7c9 Mon Sep 17 00:00:00 2001 From: twells46 <173561638+twells46@users.noreply.github.com> Date: Wed, 31 Dec 2025 13:28:05 -0600 Subject: Migrate from stow --- private_dot_local/bin/executable_compresspdf | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 private_dot_local/bin/executable_compresspdf (limited to 'private_dot_local/bin/executable_compresspdf') diff --git a/private_dot_local/bin/executable_compresspdf b/private_dot_local/bin/executable_compresspdf new file mode 100644 index 0000000..c79da7e --- /dev/null +++ b/private_dot_local/bin/executable_compresspdf @@ -0,0 +1,8 @@ +#!/bin/sh + +file="${1}" +ext="${file##*.}" +base="${file%.*}" + +[ "${ext}" = "pdf" ] || exit +gs -sDEVICE=pdfwrite -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile="${base}-compressed${ext}" "${file}" -- cgit v1.2.3