]> Sergey Matveev's repositories - dotfiles.git/blobdiff - bin/bin/my-ps2pdf
Do not linearise by default
[dotfiles.git] / bin / bin / my-ps2pdf
index 4f34bdb3180ddb3de7d9407869d6ee63ab50076d..ba5af647bedb0591e29cc003fadbc5ba000da2b2 100755 (executable)
@@ -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