Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6601097

Margins are not reset to hardware margins when width/height is 0 or -ve alongwith x,y

XMLWordPrintable

    • 2d
    • 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.

            psadhukhan Prasanta Sadhukhan
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: