Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #28688

Re: Java printing Margins

From Knute Johnson <eternal@knutejohnson.com>
Newsgroups comp.lang.java.programmer
Subject Re: Java printing Margins
Date 2014-06-09 07:26 -0700
Organization A noiseless patient Spider
Message-ID <ln4g6j$oif$1@dont-email.me> (permalink)
References (2 earlier) <bpuro9pjieki3r116m5lbdd0kbvg2qm8gg@4ax.com> <lmonvd$jj6$1@dont-email.me> <6eo8p9lrdvp70st73bhbj8c3ughv5slbaj@4ax.com> <ln2jeq$gls$1@dont-email.me> <ln2oo5$er0$1@dont-email.me>

Show all headers | View raw


On 6/8/2014 15:40, Martin Gregorie wrote:
> On Sun, 08 Jun 2014 14:09:46 -0700, Knute Johnson wrote:
>
>> On 6/8/2014 06:17, Roedy Green wrote:
>>> On Wed, 04 Jun 2014 20:25:38 -0700, Knute Johnson
>>> <eternal@knutejohnson.com> wrote, quoted or indirectly quoted someone
>>> who said :
>>>
>>>
>>>> I think you should set the PageFormat to landscape.  Please see the
>>>> following code that I wrote to print images.
>>>
>>> Nothing rotated.  I could get it to rotate by choosing landscape by
>>> clicking into the Windows printer dialog.
>>>
>>> And of course I was able to get it to rotate with AffineTransform.
>>>
>>>
>> Maybe I misunderstood what you wanted.  To print landscape just select
>> landscape but if you want your image drawn rotated, you have to do that
>> yourself.
>
> Knute's program works here and does exactly what it says on the tin: pick
> an image that's longer than its wide, select landscape, select the
> printer, hit print and its done. The printed result is exactly what I
> expected: the image occupies the full printable area of the page (without
> changing default margins, which Knute's program doesn't allow, and is in
> landscape mode on the page.
>
> I'm running Linux Fedora 20, java version "1.6.0_45", and printing to a
> LAN-attached HP Laserjet 5 with a JetDirect network interface card.
>
> I assume that's pretty close what you wanted.
>
>

To be honest I default the margins to 0.3 inches for my printer.  But 
select PageFormat from the File menu and you can set the margins.

-- 

Knute Johnson

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Java printing Margins Roedy Green <see_website@mindprod.com.invalid> - 2014-06-02 09:20 -0700
  Re: Java printing Margins Roedy Green <see_website@mindprod.com.invalid> - 2014-06-02 09:38 -0700
  Re: Java printing Margins Roedy Green <see_website@mindprod.com.invalid> - 2014-06-02 09:51 -0700
  Re: Java printing Margins Knute Johnson <eternal@knutejohnson.com> - 2014-06-02 13:15 -0700
    Re: Java printing Margins Roedy Green <see_website@mindprod.com.invalid> - 2014-06-03 11:04 -0700
      Re: Java printing Margins Knute Johnson <eternal@knutejohnson.com> - 2014-06-04 20:25 -0700
        Re: Java printing Margins Roedy Green <see_website@mindprod.com.invalid> - 2014-06-08 06:17 -0700
          Re: Java printing Margins Knute Johnson <eternal@knutejohnson.com> - 2014-06-08 14:09 -0700
            Re: Java printing Margins Martin Gregorie <martin@address-in-sig.invalid> - 2014-06-08 22:40 +0000
              Re: Java printing Margins Knute Johnson <eternal@knutejohnson.com> - 2014-06-09 07:26 -0700
                Re: Java printing Margins Martin Gregorie <martin@address-in-sig.invalid> - 2014-06-09 16:10 +0000
                Re: Java printing Margins Knute Johnson <eternal@knutejohnson.com> - 2014-06-09 11:41 -0700
                Re: Java printing Margins Martin Gregorie <martin@address-in-sig.invalid> - 2014-06-09 22:02 +0000
                Re: Java printing Margins Knute Johnson <eternal@knutejohnson.com> - 2014-06-09 15:56 -0700
      Re: Java printing Margins Knute Johnson <eternal@knutejohnson.com> - 2014-06-04 20:27 -0700
        Re: Java printing Margins Jeff Higgins <jeff@invalid.invalid> - 2014-06-05 19:56 -0400
          Re: Java printing Margins Knute Johnson <eternal@knutejohnson.com> - 2014-06-05 20:38 -0700
        Re: Java printing Margins Roedy Green <see_website@mindprod.com.invalid> - 2014-06-08 06:19 -0700
          Re: Java printing Margins Martin Gregorie <martin@address-in-sig.invalid> - 2014-06-08 15:49 +0000
            Re: Java printing Margins Jeff Higgins <jeff@invalid.invalid> - 2014-06-08 22:50 -0400
              Re: Java printing Margins Jeff Higgins <jeff@invalid.invalid> - 2014-06-08 23:32 -0400
                Re: Java printing Margins Martin Gregorie <martin@address-in-sig.invalid> - 2014-06-09 15:30 +0000
                Re: Java printing Margins Jeff Higgins <jeff@invalid.invalid> - 2014-06-09 13:29 -0400
                Re: Java printing Margins Jeff Higgins <jeff@invalid.invalid> - 2014-06-09 14:00 -0400
                Re: Java printing Margins Jeff Higgins <jeff@invalid.invalid> - 2014-06-09 14:16 -0400
                Re: Java printing Margins markspace <markspace@nospam.nospam> - 2014-06-09 14:04 -0700
                Re: Java printing Margins Jeff Higgins <jeff@invalid.invalid> - 2014-06-09 17:38 -0400
  Re: Java printing Margins Roedy Green <see_website@mindprod.com.invalid> - 2014-06-03 11:36 -0700
    Re: Java printing Margins Roedy Green <see_website@mindprod.com.invalid> - 2014-06-05 12:47 -0700

csiph-web