pyPrintQueue
This project contains one or more CUPS backends, written in python, to allow the manipulation and saving of PDFs directly from the print queue on MacOS.
It's worth pointing out that the next version of CUPS will remove support for backends. And MacOS will not install python by default either!