Closed wifiprintguy closed 2 years ago
ippeveprinter and PAPPL both do this, investigating...
The code is setting the extension based on the job->format
value, checking whether it is initialized before the calls...
Looks like Send-Document only set job->format
if "document-format" wasn't specified or was 'application/octet-stream'.
[master ade54d0] Fix spool filename with Send-Document (Issue #219)
When ippserver receives a Document Creation operation (Print-Job, Send-Document, not sure about Send-URI), it saves the file using a .prn file extension. It would be better if it saved it using a file extension corresponding to the MIME media type specified by the "document-format" Job Template attribute.
As an example, here is a trace from ippserver receiving a JPEG file via Send-Document:
If ippserver were to save the file appropriately, the last three lines would instead hopefully report this:
This would make examining the files directly easier, and this would also help downstream "transform" tools to make transform choices without having to open the files. Transform tools that always open the file and act on the byte stream don't need this change but this change won't break their implementation.