Skip to content

Instantly share code, notes, and snippets.

@shadyueh
Created September 12, 2022 16:41
Show Gist options
  • Save shadyueh/03cb080a9a520de8337394f5c7588f42 to your computer and use it in GitHub Desktop.
Save shadyueh/03cb080a9a520de8337394f5c7588f42 to your computer and use it in GitHub Desktop.
gs -sOutputFile=outfile.pdf -sDEVICE=pdfwrite \
-sColorConversionStrategy=Gray -dProcessColorModel=/DeviceGray \
-dCompatibilityLevel=1.4 infile.pdf < /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment