Mark Stephens Mark has been working with Java and PDF since 1999 and is a big NetBeans fan. He enjoys speaking at conferences. He has an MA in Medieval History and a passion for reading.

Convert PDF to grayscale or black and white

59 sec read

PDFs are designed to use full colour with transparency. We generally use ARGB to provide the best quality display of PDF content and we are always trying to improve our quality of output. So it was something of a culture shock to have several inquiries about making the output WORSE. They wanted the PDF displayed or printed in Grayscale or black and white…

Taking a PDF an making the output grayscale or black and white does result in some image deterioration which varies from file to file. On a page of black and white text it is negligible whereas it can have a big effect on images. Here is an example. The original…

…as grayscale

and in black and white…

As you can see in this example, grayscale works well whereas black and white does impact image appearance.

The advantages of having a PDF in grayscale or black and white are that it allows for a smaller image size and allows it use in faxes (which do not seem to be as extinct as I had believed). It also means that people who do lots of printing can use the cheaper print modes.

There are several ways to convert a PDF to grayscale or black and white. If you are using JPedal and want to use the feature we have added, there is a new tutorial here.

This post is part of our “Understanding the PDF File Format” series. In each article, we discuss a PDF feature, bug, gotcha or tip. If you wish to learn more about PDF, we have 13 years worth of PDF knowledge and tips, so click here to visit our series index!

Did you know...

IDRsolutions offers a whole range of online file converters to convert PDF and Microsoft Excel, Word and Office Documents to HTML5, SVG or image formats?

It is free to use for single file conversions and also includes Developer links if you want to use our commercial software for bulk conversions. Find out more on this page

Mark Stephens Mark has been working with Java and PDF since 1999 and is a big NetBeans fan. He enjoys speaking at conferences. He has an MA in Medieval History and a passion for reading.

How to convert WMF files to SVG in java…

This article will show you how to convert WMF files into SVG files using our JDeli Java Image library. What is WMF? WMF is...
Amy Pearson
1 min read

How to write WebP images in Java

In this article, I will walk you through how to write out images as WebP images in Java. ImageIO does not support WebP images...
Mark Stephens
1 min read

How to convert EMF files to SVG in Java…

This article shows you how to convert EMF files into SVG files using our JDeli Java Image library. What is EMF? EMF is a...
Mark Stephens
1 min read

Leave a Reply

Your email address will not be published. Required fields are marked *

IDRsolutions Ltd 2020. All rights reserved.