Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Jeff Higgins Newsgroups: comp.lang.java.programmer Subject: Re: Java printing Margins Date: Mon, 09 Jun 2014 13:29:49 -0400 Organization: A noiseless patient Spider Lines: 40 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 9 Jun 2014 17:34:03 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="6b9e92482af47766954d85fb77d372f5"; logging-data="20991"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19699lP2lkazSimC1TXID0iXRadat6R5dQ=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0 In-Reply-To: Cancel-Lock: sha1:qEym5BfG02zrAcsxJxYXe02ixQg= Xref: csiph.com comp.lang.java.programmer:28691 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 >>> 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". Thanks to all for the prompting.