From 430a5f83d84395a52e08ae043daa26f241aeb8c4 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sat, 1 Jun 2019 00:19:38 +0800 Subject: pdf-compress.sh: Add '-dPrinted=false' to preserve links Reference: https://bugs.ghostscript.com/show_bug.cgi?id=699830#c16 --- cli/pdf-compress.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/pdf-compress.sh b/cli/pdf-compress.sh index 9f68c4c..3551fce 100755 --- a/cli/pdf-compress.sh +++ b/cli/pdf-compress.sh @@ -43,6 +43,7 @@ gs -dNOPAUSE -dBATCH -dSAFER \ -sDEVICE=pdfwrite \ -dCompatibilityLevel=1.4 \ -dPDFSETTINGS="/${quality}" \ + -dPrinted=false \ -dEmbedAllFonts=true \ -dSubsetFonts=true \ -dColorImageDownsampleType=/Bicubic \ -- cgit v1.2.2