HPInc / jipp

A Java-compatible implementation of IPP
MIT License
153 stars 42 forks source link

About the picture format printing problem #115

Closed DevenLiang closed 3 years ago

DevenLiang commented 3 years ago

The printing format is set to image/jpeg. When the printing task was started, the printer received error 853. The machine used was a Canon printer, but for some reason it failed. PDF format can be printed normally.Do I need any special Settings for this picture?

DevenLiang commented 3 years ago

On the HP printer, the image/jpeg format was set to initiate the printing task, which was also unsuccessful, and the printer received no feedback. But the interface returns SUCCESS -OK. Is there a missing setting?

GladeDiviney commented 3 years ago

Hi @DevenLiang, this issue list is for issues with JIPP, not specific printers. Do you have a question about JIPP?

DevenLiang commented 3 years ago

Hi @DevenLiang, this issue list is for issues with JIPP, not specific printers. Do you have a question about JIPP?

Types.documentformat. of("image/ JPEG ") cannot print the image format properly when I use JIIP.

image

GladeDiviney commented 3 years ago

It's up to the printer to accept or reject requests. And not all printers support all document formats. You may need to request printer attributes before sending image/jpeg:

        // Query for supported document formats
        IppPacket attributeRequest = IppPacket.getPrinterAttributes(uri)
                .putOperationAttributes(
                        requestingUserName.of(CMD_NAME),
                        requestedAttributes.of(documentFormatSupported.getName()))
                .build();

Best of luck with your project.