-
Bug
-
Resolution: Fixed
-
P4
-
5.0, 9
-
b127
-
x86
-
windows_xp
6543815 Imageable area of PageFormat is ignored if values of imageable X/Y are negative
- The above bug resets the x,y to 0 if they are negative before creating a MediaPrintableArea and the platform replaces it with hardware margins when printing. This works only if x/y is negative. If either width/height is negative alongwith x or y, then the margin is set to the java def 1 inch margin and not hardware margins. So x,y being -ve and x,y,width,height being -ve are handled differently.
Reprodcible on WinXP with Photon Phaser 5500DN, atleast since JDK5.
I have attached a sample test. Execute the sample test. Click ok on the page and print dialog. When you see java margins printed on the console, the bug is reproduced.
- The above bug resets the x,y to 0 if they are negative before creating a MediaPrintableArea and the platform replaces it with hardware margins when printing. This works only if x/y is negative. If either width/height is negative alongwith x or y, then the margin is set to the java def 1 inch margin and not hardware margins. So x,y being -ve and x,y,width,height being -ve are handled differently.
Reprodcible on WinXP with Photon Phaser 5500DN, atleast since JDK5.
I have attached a sample test. Execute the sample test. Click ok on the page and print dialog. When you see java margins printed on the console, the bug is reproduced.
- relates to
-
JDK-6543815 Imageable area of PageFormat is ignored if values of imageable X/Y are negative.
-
- Closed
-