Whenever I try to print a PDF file using the lp command or from the program I wrote which uses the CUPS API, I get the following error upon checking the current state of the print job using lpstat -l:
C331-108 iris 420864 Tue Jan 25 20:06:31 2022
Status: loadFilename failed: open no: No such file or directory
queued for C331
I’ve also checked the log file located in /var/log/cups/error_log and it prints out the same error as shown below:
[Job 115] loadFilename failed: open no: No such file or directory
[Job 115] Input is empty, outputting empty file.
[Job 115] PID 895 (/usr/libexec/cups/filter/pdftops) exited with no errors.
[Job 115] PID 894 (/usr/libexec/cups/filter/pdftopdf) stopped with status 1.
I don’t understand why I’m getting this error because I’ve tried to do the exact same thing in another Linux machine and there everything works correctly and I’m able to print a pdf file.
cups version 2.2.12