-
Bug
-
Resolution: Fixed
-
P5
-
5.0
-
b33
-
x86
-
windows_2000
FULL PRODUCT VERSION :
java version "1.5.0_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08)
Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows 2000 5.00.2195 Sevice Pack 4
Microsoft Windows XP Professional
EXTRA RELEVANT SYSTEM CONFIGURATION :
HP Deskjet 3845
A DESCRIPTION OF THE PROBLEM :
When printing a Java 2D object in landscape mode, the hard-copy comes out printed in portrait. Landscape mode is "hard-coded" for this task using
pf.setOrientation(PageFormat.LANDSCAPE);
The code works properly when compiled and run under 1.4.1.
Changing the orientation thorugh the print dialog to landscape has no effect.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Create a large BufferedImage (2000 x 1760)
Draw a bunch of shapes on it (several hundred GeneralPath objects)
In the print function,
set Paper to Legal Size
set page orientation to Landscaper mode
scale it so half of the height fits the (6.5") available width of a page,
using pf.getImageableWidth() & ...height() - 1" margin to determine available area of a page.
Use the Graphics 2D drawImage (IBufferedImage, Transform, null) method to send the image to the printer.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The image that is printed should "fill" the page, and be printed in landscape orientation. This should be half of the buffered image.
ACTUAL -
The image prints in portrait orientation, on the top half of the page. The right -side portion of the image is not printed because it runs off the side of the page.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
This would requre sending our entire application of several dozen source files, or spending a day rewriting our code to show just this problem.
---------- END SOURCE ----------
Release Regression From : 1.4.1
The above release value was the last known release where this
bug was known to work. Since then there has been a regression.
###@###.### 2005-2-14 06:38:02 GMT
java version "1.5.0_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08)
Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows 2000 5.00.2195 Sevice Pack 4
Microsoft Windows XP Professional
EXTRA RELEVANT SYSTEM CONFIGURATION :
HP Deskjet 3845
A DESCRIPTION OF THE PROBLEM :
When printing a Java 2D object in landscape mode, the hard-copy comes out printed in portrait. Landscape mode is "hard-coded" for this task using
pf.setOrientation(PageFormat.LANDSCAPE);
The code works properly when compiled and run under 1.4.1.
Changing the orientation thorugh the print dialog to landscape has no effect.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Create a large BufferedImage (2000 x 1760)
Draw a bunch of shapes on it (several hundred GeneralPath objects)
In the print function,
set Paper to Legal Size
set page orientation to Landscaper mode
scale it so half of the height fits the (6.5") available width of a page,
using pf.getImageableWidth() & ...height() - 1" margin to determine available area of a page.
Use the Graphics 2D drawImage (IBufferedImage, Transform, null) method to send the image to the printer.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
The image that is printed should "fill" the page, and be printed in landscape orientation. This should be half of the buffered image.
ACTUAL -
The image prints in portrait orientation, on the top half of the page. The right -side portion of the image is not printed because it runs off the side of the page.
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
This would requre sending our entire application of several dozen source files, or spending a day rewriting our code to show just this problem.
---------- END SOURCE ----------
Release Regression From : 1.4.1
The above release value was the last known release where this
bug was known to work. Since then there has been a regression.
###@###.### 2005-2-14 06:38:02 GMT
- relates to
-
JDK-6229507 ImageableWidth wrong after switch to LANDSCAPE in native pageDialog
-
- Closed
-