Broad problem: access cups spool data as common user
In a store, at the sales desk, we have a software that generates bills as PDF files, which the cashier prints for the customers. I do not have access to the database where these PDF files are generated. However, I have written a parsing script (using pdftotext and awk) to convert them to .csv, which I can then use to collate per each products delivery type and warehouse to create picking lists.
I want to run a script on each bill as soon as it is printed, to send copies to the corresponding warehouses.
Preliminary plan:
After some googling, I thought to use incrond/incrontab (inotify) to monitor printer activity and trigger my own script to process each bill. At the following question I found info regarding the cups spool:
Where does Cups keep print job information?, and at CUPS - output a copy of all print jobs as PDF, I found that the data in /var/spool/cups is stored "as is", ready to be copied and processed; but I do not know how to monitor this folder or copy the data out--I can only see it as superuser. I am running Debian 11. I am confused by the permissions problem, and don't know how to proceed.
Should I use incrond as root to monitor /var/spool/cups? And if so, how can I then copy new print jobs out to where my normal user can read them?
(Frame challenges welcome, even though I've kind of cottoned to this incrond business).