Closed olifre closed 5 months ago
Note: The current rule is for detecting PCL 3/4/5 and not PCL6/PCLXL. That there is more than 4k of header crap in the driver output just shows how bad the Windows drivers are...
That said, the added lines are incorrect - the second number in the "contains" is the length, not the last character position, so this can just be "4096" as for the originals...
Note: The current rule is for detecting PCL 3/4/5 and not PCL6/PCLXL. That there is more than 4k of header crap in the driver output just shows how bad the Windows drivers are...
Wholeheartedly agreed. If there was a working alternative for those printers on that OS...
That said, the added lines are incorrect - the second number in the "contains" is the length, not the last character position, so this can just be "4096" as for the originals...
Thanks! I'll fix that in my .types
file.
I'm going to mark this one as a duplicate of #925 and we can address all of the mime.types issues there.
Describe the bug PCL print jobs, e.g. by Windows systems using vendor drivers, are in some cases incorrectly not detected as mime type
application/vnd.cups-raw
since theirLANGUAGE
header may be beyond the 4096 character limit.To Reproduce Steps to reproduce the behavior:
Expected behavior Document correctly detected as
application/vnd.cups-raw
.Print job example
Header (> 4096 bytes)
``` %-12345X@PJL JOB @PJL XCPT @PJL XCPT @PJL XCPTSystem Information:
Additional context This issue seems to have become more common after Windows updates in the last weeks, likely more information is embedded into the XML before the "Enter Language" part. I am currently using the following
.types
dropin as a workaround:Issue can be reproduced by running
cupsfilters
on the (truncated) sample job file provided above.