pkpgcounter

computes number of pages or quantity of ink needed to print documents

Install

All systems
curl cmd.cat/pkpgcounter.sh
Debian Debian
apt-get install pkpgcounter
Ubuntu
apt-get install pkpgcounter
Fedora
dnf install pkpgcounter
Windows (WSL2)
sudo apt-get update sudo apt-get install pkpgcounter
Raspbian
apt-get install pkpgcounter

pkpgcounter

computes number of pages or quantity of ink needed to print documents

pkpgcounter is a generic Page Description Language parser which can either count the number of pages or compute the percent of ink coverage needed to print various types of documents. It is written in Python. It currently recognizes the following file formats : * PostScript (both DSC compliant and binary) * PDF * PCL3/4/5 * PCLXL (aka PCL6) * DVI * OpenDocument (ISO/IEC DIS 26300) * Microsoft Word (c) (tm) (r) (etc...) * Plain text * TIFF * Several other image formats * ESC/P2 * Zenographics ZjStream * Samsung QPDL (aka SPL2) * Samsung SPL1 * ESC/PageS03 * Brother HBP * Hewlett-Packard Lightweight Imaging Device Interface Language * Structured Fax * Canon BJ/BJC * ASCII PNM (Netpbm) The ten latter ones, as well as some TIFF documents, are currently only supported in page counting mode. pkpgcounter is often used in combination with print accounting solutions like PyKota or JasMine.