From fdc9dbfc8fd2041cac95f7d7340944d928f70e06 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Thu, 27 Jan 2022 22:03:45 +0300 Subject: [PATCH] Linearize PDFs after ps2pdf --- bin/bin/ps2pdf.zsh | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.44.0