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: Martin Gregorie Newsgroups: comp.lang.java.programmer Subject: Re: Java printing Margins Date: Mon, 9 Jun 2014 15:30:42 +0000 (UTC) Organization: A noiseless patient Spider Lines: 38 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 9 Jun 2014 15:30:42 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="e5160e2be48f1ea550cf61512446f525"; logging-data="12278"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX181FOPmNY0whmbG3w5QF0HguDR2e7rDbKE=" User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) Cancel-Lock: sha1:wR0yL/T5C1xWiIov4OpfAKiJhyg= Xref: csiph.com comp.lang.java.programmer:28689 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 >> . >> > 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. -- martin@ | Martin Gregorie gregorie. | Essex, UK org |