summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2024-01-05 03:28:36 +0100
committerJonas Smedegaard <dr@jones.dk>2024-01-05 03:28:36 +0100
commitdd2db3ad3dfdd3bb74775b87701c28e0b923da72 (patch)
treed39130c5f76da11ef4dd39f7679179308777f009
parent237216476456202bbd7b209ae819981993e51636 (diff)
rename localpdf2pdfscreen -> localpdf2ps2pdf, optimize for consumer print by default, and improve help output
-rwxr-xr-xlocalpdf2ps2pdf (renamed from localpdf2pdfscreen)23
1 files changed, 15 insertions, 8 deletions
diff --git a/localpdf2pdfscreen b/localpdf2ps2pdf
index e2c4d02..686d000 100755
--- a/localpdf2pdfscreen
+++ b/localpdf2ps2pdf
@@ -1,11 +1,9 @@
#!/bin/sh
#
-# /usr/local/bin/localpdf2pdfscreen
-# Copyright 2008 Jonas Smedegaard <dr@jones.dk>
+# /usr/local/bin/localpdf2ps2pdf
+# Copyright 2008-2023 Jonas Smedegaard <dr@jones.dk>
#
-# $Id: localpdf2pdfscreen,v 1.5 2008-03-17 13:39:17 jonas Exp $
-#
-# Downsize PDF file.
+# Refry PDF file.
#
set -e
@@ -14,7 +12,7 @@ PRG="$(basename "$0")"
# Default options
PDFTOPSOPTS="-preload -paper match"
-PS2PDFOPTS="-dPDFSETTINGS=/screen"
+PS2PDFOPTS="-dDownsampleColorImages=true -dColorImageResolution=150"
showhelp() {
cat <<EOF
@@ -26,8 +24,17 @@ Defaults:
ps2pdf: $PS2PDFOPTS
Examples:
- $PRG newspaper.pdf newspaper_screenready.pdf
- $PRG newspaper.pdf -level3
+ $PRG file.pdf -f 7 -l 9
+ $PRG file.pdf -- -dPDFA -dPDFACompatibilityPolicy=1
+ $PRG file.pdf -- -dPDFSETTINGS=/screen
+ $PRG file.pdf -level3 -- -dPDFSETTINGS=/prepress
+
+First example above picks pages 7-9.
+Second example above reduces PDF complexity.
+Third example reduces image size for screen-only use.
+Fourth example preserves complexity and image size for professional use.
+
+Defaults reduce file size for 300 DPI color print use.
EOF
}