JDK-7157659 : [macosx] Landscape Printing orientation doesn't work
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: os_x
  • CPU: x86
  • Submitted: 2012-03-29
  • Updated: 2012-06-05
  • Resolved: 2012-06-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
7u6 b10Fixed 8Fixed
Mac OS X 10.7.3 macmini4,1
Run some of the manual regression tests requiring landscape page orientation.

I would suggest closed/java/awt/print/PrinterJob/TransImages/TransImages.java or
closed/java/awt/print/PrinterJob/PrintTextTest -- however neither of them would really work as a jtreg test. Fortunately, both of them have a useful main(): please use that, just javac/java etc.

You will see that page will not be printed landscape when required.

EVALUATION Actually it works fine if you use the Swing print dialog which uses the CUPS printing path. The problem is only via the native printing dialog which uses Quartz. It seems like the device is not being put into landscape mode. This is NOT a regression. Its broken on Apple JDK 6.