开发者

Tool for PDF conversion to black and white [closed]

Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this questi开发者_如何学Pythonon? Update the question so it's on-topic for Stack Overflow.

Closed 9 years ago.

Improve this question

Is there a freely available (preferably open source) tool or library for PDF conversion to black and white?

Some customers want to print generated PDF documents in B&W to save toner. Unfortunately I cannot generate PDF in B&W directly, since we are merging two PDF pages together, one being official not available in B&W.

Update: To be more specific, I am looking for automatic solution, i.e. tool that is callable from a program.


Having seen Viliam's insisting on wanting "Black and White", not "Grayscale" I'm still offering this solution to convert PDF files to grayscale. Because I think that would perfectly fullfil the requirement to "save color toner" and make use of black toner only.

Use Ghostscript (the most recently released version is 9.05) with this command:

 gs \
   -o black+white.pdf \
   -sDEVICE=pdfwrite \
   -dPDFSETTINGS=/prepress \
   -sColorConversionStrategy=Gray \
   -sColorConversionStrategyForImages=Gray \
   -sProcessColorModel=DeviceGray \
   -dCompatibilityLevel=1.4 \
    /path/to/input.pdf

On Windows, use gswin32c.exe or gswin64c.exe instead of gs. Ghostscript meets Viliam's request for:

  • freely available
  • Open Source
  • callable from a program

and it does the job.


Update

If color conversion does not work as desired and if you see a message like "Unable to convert color space to Gray, reverting strategy to LeaveColorUnchanged" then...

  1. your Ghostscript probably is a newer release from the 9.x version series, and
  2. your source PDF likely uses an embedded ICC color profile

In this case add -dOverrideICC to the command line and see if it changes the result as desired.


Try this website,

http://online.puzzleflow.com/process/all2gray

It worked for me.

Update

It has been made a payed website


With PrimoPDF (http://www.primopdf.com/index.aspx) you should be able to set to generate a "Black & White" pdf.

"Printing Preferences" -> "Paper/Quality" tab, then you can choose between "Black & White" and "Color.

Regards
Thomas

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜