Select page by gray surface

Belongs to

What it does

Selects gray pages in a PDF based on the total surface (%) of colored content on that page.

You can configure the following attributes:
  • How big the non-gray area should be, e.g. less than 90% should be non-gray
  • Whether or not a deviation from gray is allowed, e.g. if only "pure" gray should be selected, choose 0% as deviation.
  • Which of the page boxes defines a page.
Use cases:
  • Use this Action in combination with Log selection to detect whether a PDF should be printed in color or in black and white.
  • Use this Action in combination with Convert color to select gray pages and convert the colors to grayscale (to save ink).

Example

The following Action List selects the pages in your PDF that have almost no colored content (less than 5% of the page - the page being defined by the trim box). There is a small tolerance allowed, meaning that colors that are "almost gray" are also considered "gray".
Select page by gray surface 
                 <!-- Select page if non-gray surface is less than 5% of the total page area  -->
                 <!-- Ignore color that deviates less than 3% from gray -->
                 <!-- Page area is defined by the trim box -->

Related Actions