Free Support Forum -

Count of color pages vs b/w pages

Is it possible in Aspose.Words or Aspose.PDF to count the number of color pages vs b/w pages in a document? I need this because we print high volumes and our printer vendor charges more for color pages the b/w pages.


We are working over the specified requirement and will share the feedback with you as soon as possible.


After evaluation of the requirements; actually there is no direct API method serving this need. However, you can convert Word or PDF files to JPEG (PNG or other) images. Afterwards, you can do a pixel analysis of image using Aspose.Imaging. E.g. If it is grayscale or b/w or else it will be coloured. The following article will help you.