Bug 452339

Summary: Okular uses pdf title to create print job. If the title is too long the printer refuses the job
Product: [Applications] okular Reporter: ndrgrimm
Component: printingAssignee: Okular developers <okular-devel>
Status: REPORTED ---    
Severity: major CC: aacid, yvan
Priority: NOR    
Version First Reported In: 21.08.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description ndrgrimm 2022-04-06 16:37:43 UTC
SUMMARY

Okular uses pdf title to create print job. If the title is too long the printer refuses the job

STEPS TO REPRODUCE
1. Create a pdf with long metadata Title more that 100 characters 
2. Print the pdf using the Print command
3. Check the Print Queque of the printer


OBSERVED RESULT

The print job is refused with message "Print job was not accepted"

EXPECTED RESULT


SOFTWARE/OS VERSIONS
Operating System: Kubuntu 21.10
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
Kernel Version: 5.13.0-39-generic (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-8665U CPU @ 1.90GHz
Memory: 15,3 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620

ADDITIONAL INFORMATION
Comment 1 Albert Astals Cid 2022-04-06 20:54:17 UTC
I wonder if that limit is printer dependant, last time we had this problem, the limit was at 255 characters.
Comment 2 Albert Astals Cid 2022-04-06 21:32:51 UTC
Upstream confirms 255 is the actual limit at https://github.com/OpenPrinting/cups/issues/367

 no idea why it's failing for you at 100