-
Bug
-
Resolution: Fixed
-
P4
-
5.0
-
b135
-
x86
-
linux
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8298253 | 8u371 | Renjith Kannath Pariyangad | P4 | Resolved | Fixed | b04 |
JDK-8301145 | 8u361 | Dukebot | P4 | Closed | Fixed | b32 |
FULL PRODUCT VERSION :
java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Linux XXXXX 2.6.11.4-21.7-default #1 Thu Jun 2 14:23:14 UTC 2005 i686 i686 i386 GNU/Linux
EXTRA RELEVANT SYSTEM CONFIGURATION :
SuSE 9.3 with CUPS
A DESCRIPTION OF THE PROBLEM :
If you select a printer tray to print to, it is ignored under Linux. It seems to always print to the standard tray.
This is working well under win32.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Select a tray e.g. "Manual Feeder" by picking the right object from printService.getSupportedAttributeValues(Media.class, null, null).
Now add it to a PrintRequestAttributeSet attributes.
Then do something like:
HashDocAttributeSet docAttrs = new HashDocAttributeSet();
DocFlavor flavor = DocFlavor.SERVICE_FORMATTED.PAGEABLE;
Doc simpleDoc=new SimpleDoc((Object)pageable,flavor,docAttrs);
DocPrintJob docPrintJob=printService.createPrintJob();
docPrintJob.print(simpleDoc, attributes);
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Print to the selected tray.
ACTUAL -
Java prints to the standard tray.
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
none found
java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Linux XXXXX 2.6.11.4-21.7-default #1 Thu Jun 2 14:23:14 UTC 2005 i686 i686 i386 GNU/Linux
EXTRA RELEVANT SYSTEM CONFIGURATION :
SuSE 9.3 with CUPS
A DESCRIPTION OF THE PROBLEM :
If you select a printer tray to print to, it is ignored under Linux. It seems to always print to the standard tray.
This is working well under win32.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Select a tray e.g. "Manual Feeder" by picking the right object from printService.getSupportedAttributeValues(Media.class, null, null).
Now add it to a PrintRequestAttributeSet attributes.
Then do something like:
HashDocAttributeSet docAttrs = new HashDocAttributeSet();
DocFlavor flavor = DocFlavor.SERVICE_FORMATTED.PAGEABLE;
Doc simpleDoc=new SimpleDoc((Object)pageable,flavor,docAttrs);
DocPrintJob docPrintJob=printService.createPrintJob();
docPrintJob.print(simpleDoc, attributes);
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Print to the selected tray.
ACTUAL -
Java prints to the standard tray.
REPRODUCIBILITY :
This bug can be reproduced always.
CUSTOMER SUBMITTED WORKAROUND :
none found
- backported by
-
JDK-8298253 selected printertray is ignored under linux
- Resolved
-
JDK-8301145 selected printertray is ignored under linux
- Closed
- duplicates
-
JDK-6921586 Java DocPrintJob always outputs printed documents to the top tray of the printer
- Closed
- relates to
-
JDK-8234393 [macos] printing ignores printer tray
- Resolved