Skip to content

Instantly share code, notes, and snippets.

View codade's full-sized avatar

codade

View GitHub Profile
@codade
codade / Farbzähler BoD
Last active May 25, 2021 09:32 — forked from agarciadom/find-color-pages
Python 3.7+ script that lists the color pages in a PDF along with their CMYK ink mixes, as computed by the 'inkcov' device in Ghostcript 9.05+. Extended to lists all color pages in the format required by On-Demand Publisher BoD
#!/usr/bin/env python3
# Simple script for finding and counting the color pages in a PDF
# Copyright (C) 2013-2019 Antonio Garcia-Dominguez
# Licensed under the GPLv3
#
# This script is based on the following thread (thanks for the tip!):
#
# http://tex.stackexchange.com/questions/53493
#