-
Bug
-
Resolution: Fixed
-
P3
-
8, 8u112, 8u162, 11
-
b14
-
os_x
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8214273 | 11.0.3-oracle | Anton Litvinov | P3 | Resolved | Fixed | master |
JDK-8219457 | 11.0.3 | Anton Litvinov | P3 | Resolved | Fixed | master |
JDK-8218519 | openjdk8u212 | Anton Litvinov | P3 | Resolved | Fixed | b01 |
JDK-8214651 | 8u211 | Anton Litvinov | P3 | Resolved | Fixed | b01 |
JDK-8209438 | 8u202 | Anton Litvinov | P3 | Resolved | Fixed | b01 |
JDK-8211354 | 8u201 | Anton Litvinov | P3 | Resolved | Fixed | b01 |
JDK-8211897 | 8u192 | Anton Litvinov | P3 | Resolved | Fixed | b31 |
JDK-8210552 | 8u181 | Anton Litvinov | P3 | Closed | Fixed | b35 |
JDK-8220997 | emb-8u211 | Anton Litvinov | P3 | Resolved | Fixed | master |
JDK-8216900 | emb-8u201 | Anton Litvinov | P3 | Resolved | Fixed | master |
JDK 8u162 b12
ADDITIONAL OS VERSION INFORMATION :
OS X 10.11
A DESCRIPTION OF THE PROBLEM :
If "javax.print.attribute.PrintRequestAttributeSet" which contains at least one any printing attribute is transferred to "java.awt.print.PrinterJob.print(PrintRequestAttributeSet)" method, then a page size specified through "java.awt.print.Book" object associated with the printer job is not respected and the printed page size equals the default page size of the printer.
For example, in the attached test case "PrintingAttributeBreaksBookPageSize.java" the printed page size should be exactly 4" x 6", while adding a single "javax.print.attribute.PrintRequestAttribute" leads to a much bigger size of the printed page. The difference is demonstrated in the attached following PDF files:
- "PrintedPageWithCorrectSize.pdf" - correct page size.
- "PrintedPageWithWrongSize.pdf" - incorrect page size.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Configure a default printer for the system to use either a virtual printer, for example "PDF Printer Lite", "PDFwriter for Mac", or a printer capable of printing a page with 4" x 6" size.
2. Compile and run the attached test case "PrintingAttributeBreaksBookPageSize.java" leaving the line "attributes.add(Chromaticity.MONOCHROME);" commented out.
3. Notice that 4" x 6" page is properly printed.
4. Uncomment the line "attributes.add(Chromaticity.MONOCHROME);", recompile and run the test case.
5. Notice that the printed page size is different from the expected 4'' x 6'' and corresponds to the printer's default page size.
- backported by
-
JDK-8209438 [macosx] Printing attributes break page size set via "java.awt.print.Book" object
- Resolved
-
JDK-8211354 [macosx] Printing attributes break page size set via "java.awt.print.Book" object
- Resolved
-
JDK-8211897 [macosx] Printing attributes break page size set via "java.awt.print.Book" object
- Resolved
-
JDK-8214273 [macosx] Printing attributes break page size set via "java.awt.print.Book" object
- Resolved
-
JDK-8214651 [macosx] Printing attributes break page size set via "java.awt.print.Book" object
- Resolved
-
JDK-8216900 [macosx] Printing attributes break page size set via "java.awt.print.Book" object
- Resolved
-
JDK-8218519 [macosx] Printing attributes break page size set via "java.awt.print.Book" object
- Resolved
-
JDK-8219457 [macosx] Printing attributes break page size set via "java.awt.print.Book" object
- Resolved
-
JDK-8220997 [macosx] Printing attributes break page size set via "java.awt.print.Book" object
- Resolved
-
JDK-8210552 [macosx] Printing attributes break page size set via "java.awt.print.Book" object
- Closed
- relates to
-
JDK-8295737 macOS: Print content cut off when width > height with portrait orientation
- Resolved