14 lines
312 B
Bash
Executable file
14 lines
312 B
Bash
Executable file
#!/bin/bash
|
|
name=$1
|
|
gs \
|
|
-sDEVICE=pdfwrite \
|
|
-sProcessColorModel=DeviceGray \
|
|
-sColorConversionStrategy=Gray \
|
|
-sColorImageResolution=600 \
|
|
-sColorImageFilter=/FlatEncode \
|
|
-dOverrideICC \
|
|
-dCompatibilityLevel=1.4 \
|
|
-dAutoRotatePages=/None \
|
|
-dNoOutputFonts \
|
|
-o "$name-grey.pdf" \
|
|
"$name"
|