I want to create a document management system where I can get the file location of each printed document from the print job history of cups. But I can't find a way to retrieve this information.
I already tried
lpstat -W completed
but it only gives me the job id, user, timestamp etc but no information about the origin of the file. In my case the directory and the file name.
Does anyone have a hint?