qzind / tray

Browser plugin for sending documents and raw commands to a printer or attached device.
https://qz.io
Other
855 stars 277 forks source link

Cannot Force JavaFX Printer to Print HTML in Color #1248

Open Vzor- opened 8 months ago

Vzor- commented 8 months ago

System: Windows 10

While testing #1247, I found that a printer which had been set to 'Black & White' in the device driver could not be told to print in color when printing from HTML. This JavaFX behavior is inconsistent with AWT printing, such as PDF/Image.

To reproduce:

Vzor- commented 8 months ago

The issue seems to stem from this line https://github.com/openjdk/jfx/blob/master/modules/javafx.graphics/src/main/java/javafx/print/JobSettings.java#L910 When the printer is set to 'Black & White', 'Color' is not considered to be supported.

tresf commented 7 months ago

Thanks for documenting this @Vzor-. Can you provide a small reproducible example to provide to Gluon for an upstream bug report?

Vzor- commented 7 months ago

Thanks for documenting this @Vzor-. Can you provide a small reproducible example to provide to Gluon for an upstream bug report?

https://gist.github.com/Vzor-/b221e53911b2607919f68ac9d5e850ab

tresf commented 7 months ago

Thanks! Upstream bug report filed SUPQZ-21.

tresf commented 7 months ago

OpenJDK bug report: https://bugs.openjdk.org/browse/JDK-8143603