Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Following the answers to this post I get the following script:

gs \
 -sOutputFile=/tmp/output.pdf \
 -sDEVICE=pdfwrite \
 -sColorConversionStrategy=Gray \
 -sColorConversionStrategyForImages=Gray \
 -dProcessColorModel=/DeviceGray \
 -dCompatibilityLevel=1.4 \
 -dBATCH \

mv /tmp/output.pdf $1

However, running identify -verbose file.pdf | grep Colorspace afterwards shows Colorspace: sRGB.

I want to make these true grayscale PDFs, and have the Colorspace be set to gray. I have one PDF that reports gray, but I don't know how to make ghostscript convert the other ones to be like it.

share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.