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


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

Re: Java printing Margins

From Jeff Higgins <jeff@invalid.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Java printing Margins
Date 2014-06-09 13:29 -0400
Organization A noiseless patient Spider
Message-ID <ln4r6b$kfv$1@dont-email.me> (permalink)
References (4 earlier) <oho8p9lgg9hbsmof48t4evs6s6fn1slqtg@4ax.com> <ln20m8$2pq$1@dont-email.me> <ln37ma$2v7$1@dont-email.me> <ln3a4i$f2c$1@dont-email.me> <ln4jv2$bvm$1@dont-email.me>

Show all headers | View raw


On 06/09/2014 11:30 AM, Martin Gregorie wrote:
> On Sun, 08 Jun 2014 23:32:40 -0400, Jeff Higgins wrote:
>
>> On 06/08/2014 10:50 PM, Jeff Higgins wrote:
>>> On 06/08/2014 11:49 AM, Martin Gregorie wrote:
>>>> Are there any Java classes that support IPP?
>>> java+ipp brings up cups4j, ippclient, jspi and
>>> <http://docs.oracle.com/javase/8/docs/technotes/guides/jps/spec/
> JPSTOC.fm.html>.
>>>
>> I'd be interested in seeing a PrintService that returned a
>> MediaPrintableArea among its supported Attributes, even if the
>> MediaPrintableArea class docs state that "IPP Compatibility:
>> MediaPrintableArea is not an IPP attribute."
>
> LibreOffice + CUPS only shows the following printer properties:
>
> paper size,orientation,duplex,paper tray
>
> for my HP Laserjet 5. I just tried printing a page with all margins set
> to zero, expecting that at least one or two characters would be cut off
> on the left margin but, no, it just left a (guessed 4mm margin all round.
>
> I can't tell if CUPS knows what the required margins are for an LJ5.
> However, something seems to have decided to use the printable
> area rather than the physical page size and to have centred it on the
> physical page. The only think I know for sure is that the CUPS client,
> i.e. Libre Office, knew nothing about required minimal margins. If it did
> know that, then I'd have expected to refuse to set zero margin widths.
>
> My guess, and thats all it is, is that Java would do the same if I'd been
> running an application that printed through cups4j or one of the other
> classes you listed.
>
>
Intersting site, especially the section titled
"PDF is the standard print job format from CUPS 1.6.x on".
<http://www.linuxfoundation.org/collaborate/workgroups/openprinting/group>
Thanks to all for the prompting.

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