From: Sergey Matveev Date: Thu, 27 Jan 2022 19:03:45 +0000 (+0300) Subject: Linearize PDFs after ps2pdf X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=fdc9dbfc8fd2041cac95f7d7340944d928f70e06 Linearize PDFs after ps2pdf --- diff --git a/bin/bin/ps2pdf.zsh b/bin/bin/ps2pdf.zsh index 5f7bef2..4f34bdb 100755 --- a/bin/bin/ps2pdf.zsh +++ b/bin/bin/ps2pdf.zsh @@ -40,3 +40,5 @@ 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 +mv $1.pdf.pdf $1.pdf