Skip to content

Instantly share code, notes, and snippets.

@anderflash
Created July 18, 2016 18:08
Show Gist options
  • Save anderflash/5d0fb7eef03293ca670ac2c49551a7a7 to your computer and use it in GitHub Desktop.
Save anderflash/5d0fb7eef03293ca670ac2c49551a7a7 to your computer and use it in GitHub Desktop.
Convert PDF to Grayscale
#!/bin/bash
gs \
-sOutputFile=$2 \
-sDEVICE=pdfwrite \
-sColorConversionStrategy=Gray \
-dProcessColorModel=/DeviceGray \
-dCompatibilityLevel=1.4 \
-dNOPAUSE \
-dBATCH \
$1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment