Free plan

Ink coverage

Measure how much ink each page uses and estimate print cost
POST
/v1/pdfs/ink-coverage

About this tool

This tool measures how much of each page is covered by cyan, magenta, yellow and black ink, the four inks used in printing. It tells you which pages are colour and which are black and white. You can set an ink limit to flag heavy pages, and give a price for colour and black-and-white pages to get a cost estimate. The cost is only an estimate.
For example, you check how expensive a print job will be before you send it to the printer.

How to use it

  1. Choose this tool.
  2. Add your PDF with Upload or drag and drop.
  3. Optionally choose the pages to measure.
  4. Type the price of a colour page and a black-and-white page, and an ink limit if you want one.
  5. Press Generate and read the result.

What you get back

You get a page-by-page report with the ink amounts, which pages are colour, and an estimated cost. You can copy it.
GOOD TO KNOW
Measured by Ghostscript on the page as it would print (RGB is converted to CMYK by its default rules). Counts as one PDF operation.
TEST IT LIVE

Try Ink coverage in the Studio

One click opens the Studio with this tool already selected. Add your file and see the result in seconds.
Open in the Studio
Family
PDFs
Plan
Free
Method
POST
Endpoint
/v1/pdfs/ink-coverage
Tool ID
pdfs.ink-coverage
Authentication
API key
Accepts
PDF
Background jobs
Yes
Usage group
Pdf
For developers

Use it from your code

cURL

curl -X POST "https://app.h2i.davixlabs.io/v1/pdfs/ink-coverage" \
  -H "X-Api-Key: $DAVIX_H2I_API_KEY" \
  -F 'file=@document.pdf' \
  -F 'pages=1-3' \
  -F 'color_threshold=0.1' \
  -F 'limit=0'

Node.js

const { DavixH2I } = require('@davixlabs/h2i-sdk');

const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.pdfs.inkCoverage({
    "file": 'document.pdf',
    "pages": "1-3",
    "color_threshold": 0.1,
    "limit": 0
  });
console.log(result.data, result.requestId);

PHP

<?php
require 'vendor/autoload.php';

$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->pdfs()->inkCoverage([
    'file' => 'document.pdf',
    'pages' => '1-3',
    'color_threshold' => 0.1,
    'limit' => 0,
]);
echo $result->requestId;
FAQ

Frequently asked questions

Measure how much of each page is covered by cyan, magenta, yellow and black ink, tell colour pages from black-and-white ones, flag pages above an ink limit and estimate the print cost.

Ink coverage accepts PDF. You can send several files in one request.

Ink coverage is included in every plan, including Free. Each run uses credits from your monthly allowance.

Send a POST request to /v1/pdfs/ink-coverage with your API key in the X-Api-Key header. Official SDKs for Node.js, Python, PHP, Go, Java, .NET and Ruby do the same for you, and the code box on this page shows ready-to-copy examples. For large work it can also run as a background job, so your request returns straight away.