How to get the name of the current print operation ?

I need the name of the print operation as displayed in the print spooler…

PMGetJobNameCFString and PMSetJobNameCFString are the two API to get and set print job name. See Apple Documentation.