We are trying to assemble a free software stack to get detailed print job accounting information, something similar to what Papercut Printlogger does, for raw printing queues. We have been testing Apple Common Unix printing system (Cups) in Debian GNU is not Unix (GNU)/Linux with Pykota Tee for Cups (Tea4Cups).
In Cups, Hewlett-Packard (HP) Printer Control Language (PCL) printing job files include an HP Printer Job Language (PJL) header with job information such as number of copies, duplex or simplex, colour or black & white &c. HP even defines both PCL and PJL in the same document.
In Microsoft (MS) Windows, each print job is queued as two files: an Spool (SPL) one which has the print file itself, in whichever language: Adobe Postscript (PS), HP PCL, Epson Standard Code for Printers (Esc/P), whatever; and a Shadow (SHD) file with the PJL information.
As far as we have been able to determine, Postscript print jobs in Cups do not include nothing equivalent to PJL or SHD, neither in the PS file itself nor in a separate file.
So, is it possible to get such print job information in Cups?