aboutsummaryrefslogtreecommitdiffstats
path: root/cli
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2019-06-01 00:19:38 +0800
committerAaron LI <aly@aaronly.me>2019-06-01 00:19:38 +0800
commit430a5f83d84395a52e08ae043daa26f241aeb8c4 (patch)
tree0cee368f5cc78cb179a8e55376ae092c2a5dd5e1 /cli
parent5926594690f03cf282b856cc53facbea8a42d88c (diff)
downloadatoolbox-430a5f83d84395a52e08ae043daa26f241aeb8c4.tar.bz2
pdf-compress.sh: Add '-dPrinted=false' to preserve links
Reference: https://bugs.ghostscript.com/show_bug.cgi?id=699830#c16
Diffstat (limited to 'cli')
-rwxr-xr-xcli/pdf-compress.sh1
1 files changed, 1 insertions, 0 deletions
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 \