I try to print two files from the command line thus:
$ lp alpha.txt beta.txt
The lpq command gives this output:
$ lpq
HP_OfficeJet_Pro_6970_7BE7A4 is ready
Rank Owner Job File(s) Total Size
1st claus 56 alpha.txt 2048 bytes
Here, it mentions only the file alpha.txt. However, only the file beta.txt is actually printed. alpha.txt is not printed.
What might be the reason for that?
I'm running Ubuntu 22.04.1 LTS with CUPS 2.4.1.
FURTHER INFORMATION
If I use lp to print more than one file, these messages appear the /var/log/cups/error_log:
W [13/Dec/2022:16:22:19 +0100] [Job 61] /tmp/12345639a6b95: file is damaged
W [13/Dec/2022:16:22:19 +0100] [Job 61] /tmp/12345639a6b95 (offset 14802): xref not found
W [13/Dec/2022:16:22:19 +0100] [Job 61] /tmp/12345639a6b95: Attempting to reconstruct cross-reference table
FURTHER INFORMATION 2
The file name in the log starts with 12345. This neat pattern is a coincidence. Repeated attempts show that the first 5 digits of the filename appear to be the hexadecimal value of the PID of the gstoraster CUPS filter that runs as part of the printing process. So perhaps, the problem lies with that filter.