Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #28635 > unrolled thread
| Started by | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| First post | 2014-06-02 09:20 -0700 |
| Last post | 2014-06-05 12:47 -0700 |
| Articles | 9 on this page of 29 — 5 participants |
Back to article view | Back to comp.lang.java.programmer
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
Page 2 of 2 — ← Prev page 1 [2]
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Date | 2014-06-08 23:32 -0400 |
| Message-ID | <ln3a4i$f2c$1@dont-email.me> |
| In reply to | #28686 |
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."
[toc] | [prev] | [next] | [standalone]
| From | Martin Gregorie <martin@address-in-sig.invalid> |
|---|---|
| Date | 2014-06-09 15:30 +0000 |
| Message-ID | <ln4jv2$bvm$1@dont-email.me> |
| In reply to | #28687 |
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. -- martin@ | Martin Gregorie gregorie. | Essex, UK org |
[toc] | [prev] | [next] | [standalone]
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Date | 2014-06-09 13:29 -0400 |
| Message-ID | <ln4r6b$kfv$1@dont-email.me> |
| In reply to | #28689 |
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.
[toc] | [prev] | [next] | [standalone]
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Date | 2014-06-09 14:00 -0400 |
| Message-ID | <ln4t06$2uo$1@dont-email.me> |
| In reply to | #28691 |
On 06/09/2014 01:29 PM, Jeff Higgins wrote: > 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. > Plus, "Dissecting The CUPS Filtering System" (2002) <http://www.openprinting.org/download/kpfeifle/LinuxKongress2002/Tutorial/V.CUPS-Filtering-Architecture/V.CUPS-Workshop-LinuxKongress2002-Content.html> which may well be out of date, given the above note.
[toc] | [prev] | [next] | [standalone]
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Date | 2014-06-09 14:16 -0400 |
| Message-ID | <ln4ttm$aaj$1@dont-email.me> |
| In reply to | #28692 |
On 06/09/2014 02:00 PM, Jeff Higgins wrote: >> Thanks to all for the prompting. Huh. http://localhost:631/, never knew that was there.
[toc] | [prev] | [next] | [standalone]
| From | markspace <markspace@nospam.nospam> |
|---|---|
| Date | 2014-06-09 14:04 -0700 |
| Message-ID | <ln57hj$md5$1@dont-email.me> |
| In reply to | #28693 |
On 6/9/2014 11:16 AM, Jeff Higgins wrote: > On 06/09/2014 02:00 PM, Jeff Higgins wrote: > >>> Thanks to all for the prompting. > > Huh. http://localhost:631/, never knew that was there. > There's also port 9100 on many printers and print servers which you can print to. http://danieru.com/2013/06/06/what-is-port-9100-how-to-print-to-it/
[toc] | [prev] | [next] | [standalone]
| From | Jeff Higgins <jeff@invalid.invalid> |
|---|---|
| Date | 2014-06-09 17:38 -0400 |
| Message-ID | <ln59nv$719$1@dont-email.me> |
| In reply to | #28695 |
On 06/09/2014 05:04 PM, markspace wrote: > On 6/9/2014 11:16 AM, Jeff Higgins wrote: >> On 06/09/2014 02:00 PM, Jeff Higgins wrote: >> >>>> Thanks to all for the prompting. >> >> Huh. http://localhost:631/, never knew that was there. >> > > > There's also port 9100 on many printers and print servers which you can > print to. > > http://danieru.com/2013/06/06/what-is-port-9100-how-to-print-to-it/ > > I've learned a lot about printing over the last (very profitable) hours. Thanks.
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2014-06-03 11:36 -0700 |
| Message-ID | <895so91vjj1ufcr6gmdnkt4a8rj5k3906h@4ax.com> |
| In reply to | #28635 |
On Mon, 02 Jun 2014 09:20:51 -0700, Roedy Green <see_website@mindprod.com.invalid> wrote, quoted or indirectly quoted someone who said : >Java tells me it wants one inch margins for printing with a LaserJet >1200. I have seen it get much closer to the edges than that. Is >there something I am doing wrong? The more I experiment, the stranger it gets. I can make it work if I ALSO select landscape in the printer option dialog. According to the docs, this should not work. LANDSCAPE is supposed to invert the direction of the y axis, but not rotate it. I think the way to handle this is to always print portrait, but do the rotations etc myself so the user does not need to fiddle with the printer configuration. -- Roedy Green Canadian Mind Products http://mindprod.com In former times, people who craved absolute power became gangsters. Today, they become computer programmers.
[toc] | [prev] | [next] | [standalone]
| From | Roedy Green <see_website@mindprod.com.invalid> |
|---|---|
| Date | 2014-06-05 12:47 -0700 |
| Message-ID | <k7i1p9lb30vsgricggfov9cdfhpjeed809@4ax.com> |
| In reply to | #28647 |
On Tue, 03 Jun 2014 11:36:50 -0700, Roedy Green <see_website@mindprod.com.invalid> wrote, quoted or indirectly quoted someone who said : > >I think the way to handle this is to always print portrait, but do >the rotations etc myself so the user does not need to fiddle with the >printer configuration. This is what I did. I works fine. I let the user optionally adjust the margins. There is no sign of a native method to find out the true margins. -- Roedy Green Canadian Mind Products http://mindprod.com In former times, people who craved absolute power became gangsters. Today, they become computer programmers.
[toc] | [prev] | [standalone]
Page 2 of 2 — ← Prev page 1 [2]
Back to top | Article view | comp.lang.java.programmer
csiph-web