From fdacf70c2a2f4341be02ef65ea346e262b19237a Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Tue, 20 Feb 2024 08:46:31 +0100 Subject: compress PDF files --- bin/pdfcompress.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 bin/pdfcompress.sh (limited to 'bin/pdfcompress.sh') diff --git a/bin/pdfcompress.sh b/bin/pdfcompress.sh new file mode 100755 index 0000000..3fecd8f --- /dev/null +++ b/bin/pdfcompress.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +set -au + +INFILE=$1 + +[ -n "$QUARTO_PROJECT_RENDER_ALL" ] || exit + +ps2pdf -dPDFSETTINGS=/printer "$INFILE" "$INFILE"~ +mv --force "$INFILE"~ "$INFILE" -- cgit v1.2.3