How to Count Color Pages in a PDF Before You Print It
Four ways to find out how many pages of a PDF contain color, why eyeballing it fails, and how to turn the count into a realistic printing cost.
By Ternfield Labs · Published · 6 min read
Short answer: you can count color pages by scrolling through the PDF and checking each one, but that only works reliably for short, simple documents. For anything longer, use a tool that inspects the page content: a preflight or "output preview" feature in a desktop PDF editor, a command-line tool such as Ghostscript, or an Android app that analyzes the file on your phone. Whichever you choose, the goal is the same: a number of color pages and a number of black-and-white pages that you can multiply by your printer's or print shop's rates.
Why the color page count matters
Most print shops, libraries, and office copiers price color and black-and-white pages differently, and the color rate is usually several times higher. If a 40-page PDF has 4 color pages and you assume the whole thing is color, you will overestimate the cost by a lot. If you assume it is all black and white, you may be surprised at the counter.
The count matters because cost is driven by the split, not by the total page count alone. Two documents with the same number of pages can have very different prices. The cost estimation guide shows the arithmetic, and why color costs more explains where the price gap comes from.
What actually makes a page "color"
A page counts as color when something on it is printed in more than shades of gray. That includes the obvious things, like photos, charts, and colored headings, but also some less obvious ones:
- A small colored logo in a header or footer that repeats on every page.
- Hyperlinks styled in blue.
- Highlighted or shaded table rows, even in a pale tint.
- Colored page borders or background fills.
- Scanned pages where the paper is slightly yellow or the scanner added a color cast. These look gray to you but are stored as color images.
- Black text that the authoring tool saved in an RGB or CMYK color space instead of pure gray. Depending on the printer or shop, it may still print black, but it is a reason why a file's internal color data and its appearance do not always agree.
The last two items are why "it looks black and white to me" is not a dependable test.
Method 1: Scroll and look
For a document of a handful of pages, this is fine. Zoom to 100 percent and look at each page, including headers, footers, and margins.
Where it fails:
- Pale tints are easy to miss on a phone screen.
- A single colored pixel cluster, such as a small icon, is easy to overlook in a 60-page document.
- Your screen's brightness and any night mode or blue-light filter change how colors look.
- It is slow, and you have to repeat it every time the document changes.
Method 2: Use a desktop PDF editor's preview tools
Professional PDF editors have print-production features. In Adobe Acrobat Pro, for example, the Output Preview tool can show which pages and objects use which colorants, and Preflight can run checks on the whole file. Other professional editors have similar tools under names like "color separations" or "ink preview."
This is accurate, but it requires paid desktop software, and the interface can be intimidating if you have never done print production.
Method 3: Run Ghostscript's ink coverage report
Ghostscript is free, open-source software that includes an inkcov output device, which reports how much cyan, magenta, yellow, and black ink each page would use. From a command line:
gs -o - -sDEVICE=inkcov document.pdf
It prints one line per page, like this (illustrative output):
0.00000 0.00000 0.00000 0.02514 CMYK OK
0.00000 0.00000 0.00000 0.03108 CMYK OK
0.01822 0.02240 0.00510 0.04012 CMYK OK
Here the first two pages have only black ink coverage, so they are black and white. The third page has non-zero cyan, magenta, and yellow values, so it is a color page.
This method is precise and scriptable, which makes it ideal for large documents, but it assumes you are comfortable with a terminal on a computer.
Method 4: Analyze the PDF on your Android phone
If your PDF is on your phone, which is often the case with files received by email or messaging apps, you can avoid moving it to a computer. PrintQuote is an Android app that analyzes the pages of a PDF on the device and classifies them as color, grayscale, black and white, or blank, then shows the page counts and an estimated printing cost using the rates you enter. Its results screen is labeled as an estimate based on automatic PDF classification, so it is worth a quick check before you rely on it for an important job.
The analysis runs locally on your device, and the app does not upload your PDF to a remote processing server. The free version analyzes PDFs up to 10 pages. Pro, a one-time $4.99 purchase through Google Play, removes that limit. See features for what the app reports.
Worked example: a 15-page report
Suppose a report PDF has these characteristics:
| Pages | Content | Type |
|---|---|---|
| 1 | Cover with colored logo | Color |
| 2 to 5 | Text only | Black and white |
| 6 | Bar chart in blue and orange | Color |
| 7 to 11 | Text and gray tables | Black and white |
| 12 | Photo | Color |
| 13 to 14 | Text | Black and white |
| 15 | Intentionally blank | Blank |
That gives 3 color pages, 11 black-and-white pages, and 1 blank page. If you had skimmed and counted only the cover and the photo, you would have missed the chart, and your color count would have been 2 instead of 3. With a color rate of $0.50 and a black-and-white rate of $0.10, that one missed page is a difference of $0.40 on a document that should cost $2.60 to print (3 x $0.50 + 11 x $0.10), assuming the blank page is removed.
Common mistakes
- Counting sheets instead of pages. In double-sided printing, one sheet holds two pages, and a sheet may be priced differently depending on the shop.
- Forgetting repeated elements. A colored footer on every page makes every page a color page.
- Assuming a Word-to-PDF export is black and white because the text is black. Charts, theme-colored tables, and hyperlinks often add color.
- Ignoring scans. Scanned documents are stored as images, and a gray-looking scan can still be a color image.
- Treating your count as a quote. Your count tells you what to expect. The shop's counting method and price list decide what you pay.
What to do with the count
Once you have the number of color, black-and-white, and blank pages (and grayscale pages, if your shop prices them separately), multiply each by the relevant rate and add the results. If the color portion is a big share of the total, consider whether the color pages truly need color, a question covered in color versus black-and-white printing cost. For the full calculation, including copies and double-sided printing, read how to estimate PDF printing cost.