6

I scanned a document in color to PDF, and I don't want to re-scan it.

How can I convert this PDF document to grayscale (preferably without loss of other information)?

My usual toolset of doPDF, pdfsam and the Neevia online converter don't work here. I was thinking I could simply print to PDF and select the Grayscale color option, but doPDF doesn't have that option.

I'm using Windows, but I can probably handle a solution for any OS.

5

I found a solution in a blog post:

With GhostScript (and Windows users can access gs via cygwin), you can do it with the following command:

gs \
  -o grayscale.pdf \
  -sDEVICE=pdfwrite \
  -sColorConversionStrategy=Gray \
  -dProcessColorModel=/DeviceGray \
  -dCompatibilityLevel=1.4 \
   source.pdf

This will convert source.pdf to grayscale.pdf and not put you into a GhostScript shell (due to the -o option instead of the -sOutputFile= option).

  • 1
    OMG!, what a complicated workaround for avoiding the Ghostscript command prompt to stay up after the processing! A more simple solution is to add -dNOPAUSE -dBATCH to the commandline. The -dNOPAUSE part spares you from hitting [return] after each page, and the -dBATCH part saves you from typing 'quit' at to exit the GS> prompt. And even shorter: just use -o grayscale.pdf for specifying the output file; this -o ... implicitly also sets -dBATCH -dNOPAUSE... – Kurt Pfeifle Aug 8 '11 at 20:14
  • It appears this no longer works with recent versions of Ghostscript: ghostscript.com/pipermail/gs-bugs/2012-May/025904.html says "'Gray' is not a documented legal value for ColorConversionStrategy" – AnC Feb 21 '13 at 17:01
3

Sounds like a job for Imagemagick. Windows and Linux versions are available.

http://www.imagemagick.org/script/index.php

This should do the trick at the command line:

convert -colorspace GRAY original.pdf grayscale.pdf
  • @nodiscc: you should be aware that ImageMagick employs Ghostscript as its delegate to render and interpret the PDF input file... (So without a working Ghostscript installation on the same system it won't work.) – Kurt Pfeifle Aug 8 '11 at 20:09
1

Just install PDFCreator. It has a small footprint and adds a PDF printer to Windows. And as you've mentioned, just select grayscale when printing to it.

  • Not that this would make your answer invalid, but do PDF prints lose information on each print? – palswim Aug 3 '11 at 21:43
  • I believe not, but you could just try - it's free :) – Traveling Tech Guy Aug 4 '11 at 3:33
1

You can just use the free service at http://greyscalepdf.com to convert any PDF to greyscale.

  • Nice; good find! Some people have sensitive information in their PDFs and don't want to use an online conversion service, though. – palswim Jan 14 '13 at 22:06
0

Sejda.com has an online tool for Converting PDF docs to Grayscale.

  1. Go to https://www.sejda.com/grayscale-pdf and upload your doc
  2. Click Convert PDF to Grayscale and then Download to save your grayscaled document.

Grayscale PDF converter and it's options

The online grayscale converter is free to use 3 times per hour, for files up to 50Mb or 200 pages.

There's also an offline version of the same tool that you can install and work locally, without uploading your files: https://www.sejda.com/desktop

Disclaimer: I'm one of the developers.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.