From: Sergey Matveev Date: Thu, 2 Nov 2023 18:17:07 +0000 (+0300) Subject: Do not linearise by default X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=14823feec417da7785637a0a2397145b8c05612b Do not linearise by default --- 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