[cups] debugging file auto-typing
Tim.Mooney at ndsu.edu
Thu Feb 14 12:23:34 PST 2019
In regard to: Re: [cups] debugging file auto-typing, Helge Blischke said...:
>> These jobs are coming from a print rendering service for mobile devices,
>> so the job has already had format conversion done by that service. My
>> expectation is that the auto-typing code should have both
>> as matching file types (pdf because the document extension is .pdf).
>> In other cases when our CUPS print server receives pre-rendered PDFs,
>> it always (correctly) chooses application/vnd.cups-raw as the type.
>> In this case it's choosing application/pdf and then trying to do
>> format conversion again. pdftops is then failing on the file, since
>> the format is no longer PDF.
> I’d suggest to edit the file which defines the recognition f PDF files,
> probably /usr/share/cups/mime/mime.types
> and delete the file extension specification ("pdf“).
Thanks Helge! Your input and printing expertise is always appreciated.
I've considered that (although by replicating the rule to local.types),
and I've also considered replicating the application/vnd.cups-raw rule
to local.types with a priority(150), but doing either of them before
I understand why auto-typing is treating some files differently strikes
me as the wrong approach. I might be able to accidentally solve this
problem, but I won't actually know what the problem was.
I'm pretty sure I'm going to end up doing something with local.types, but
ideally I would first understand the problem, rather than randomly trying
Tim Mooney Tim.Mooney at ndsu.edu
Enterprise Computing & Infrastructure 701-231-1076 (Voice)
Room 242-J6, Quentin Burdick Building 701-231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
More information about the cups