From 14823feec417da7785637a0a2397145b8c05612b Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Thu, 2 Nov 2023 21:17:07 +0300 Subject: [PATCH] Do not linearise by default --- bin/bin/my-ps2pdf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/bin/my-ps2pdf b/bin/bin/my-ps2pdf index 4f34bdb..ba5af64 100755 --- a/bin/bin/my-ps2pdf +++ b/bin/bin/my-ps2pdf @@ -40,5 +40,6 @@ for i ({1..${#toremove}}) toremove[$i]=-${toremove[$i]}= exiftool -zip -overwrite_original -quiet \ -tagsFromFile $1 -Producer\>Creator \ ${=toremove} $1.pdf -qpdf --linearize --compress-streams=y $1.pdf $1.pdf.pdf +[[ -z $LINEARIZE ]] || LINEARIZE=--linearize +qpdf $LINEARIZE --compress-streams=y $1.pdf $1.pdf.pdf mv $1.pdf.pdf $1.pdf -- 2.44.0