>>> On 12/5/2002 at 15:24:59 CST, Garrett D Rinehart wrote:
> What do any of you use to get an x-window printed on a PS printer from
> Linux? I need something non-interactive that I can just call from my
> Tcl/tk script.
>
> On Solaris, the "xwd | xpr | lpr" worked great. My RedHat Linux 7.3 has
> xwd, but not xpr. For that matter, I've searched and searched and I
> cannot find any reference to xpr under Linux on the CDs or the
> web. Doesn't it exist? Is there something else that would do what I
> want?
I have successfully used "import", which is part of the ImageMagick
package. It will do the grab and dump directly to PostScript (or many
other image formats).
Here's the command I used to make printing work from stripTool on Linux:
import -frame -window %d -page 581x752+20+20 -rotate '-90>' - | lp -d%s -o nobanner
The "-page" may not be needed. I think it was so the image would be scaled
properly to fit the page. "-rotate" gets you landscape orientation.
The standard "xwd" doesn't handle 24-bit displays, so it probably
wouldn't work well even if you did have "xpr".
- brian
Aside to the developer(s) of stripTool:
Please make the command used to grab and print configurable. Of all the
OSes I've used, only SunOS and Solaris have "xpr".
- References:
- Xwindow print from Linux Garrett D. Rinehart
- Navigate by Date:
- Prev:
Re: Xwindow print from Linux Bill Lavender
- Next:
Fwd: Xwindow print from Linux Pete R Jemian
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
<2002>
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Xwindow print from Linux Bill Lavender
- Next:
Fwd: Xwindow print from Linux Pete R Jemian
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
<2002>
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|