Xwindow screen -> color postscript file

Xwindow screen -> color postscript file

Post by Bill Metzge » Thu, 05 Sep 1996 04:00:00



Does anyone know of a way to do a screen dump, and save it to either a
postscript or HPGL file and retain the color that was on the screen?

I've tried: xwd -xy /tmp/print.xwd  
            xpr xpr -device pjetxl  /tmp/print.xwd | lp -dphaser220PS

and get the following error:
          xpr: XY format image, multiplane images must be Z format.

xwd without -xy looks like it creates a black and white file.

xpr man page mentions "multiplane images must be recorded by xwd in ZPixmap
format.  Single plane (monochrome) images may be either XYPixmap or Zpixmap
format."

+--------------------------------------------------------------------------+
| Bill Metzger                  Phone: (713) 274-2079  _/_/_/_/_/  _/_/_/  |
| Unix System Administration    Fax: (713) 274-2067       _/        _/     |
| Texas Instruments, Inc.       TI msg id: wlm           _/        _/      |

+--------------------------------------------------------------------------+

 
 
 

Xwindow screen -> color postscript file

Post by John Morr » Thu, 05 Sep 1996 04:00:00


3179,113182-113183 not in active file. Deleting.
: Does anyone know of a way to do a screen dump, and save it to either a
: postscript or HPGL file and retain the color that was on the screen?
[snip]

For postscript try ImageMagick.  From the README:


  shareware.  However, I am interested in who might be using
  it.  Please consider sending me a picture postcard of the area
  where you live.  Send postcards to

    John Cristy
    5 Middleton Lane
    Landenberg, PA  19350
    USA

  ImageMagick is available as

    ftp://ftp.wizards.dupont.com/pub/ImageMagick/ImageMagick-3.7.tar.gz
    ftp://ftp.x.org/contrib/applications/ImageMagick/ImageMagick-3.7.tar.gz

...

  The official ImageMagick WWW page is

    http://www.wizards.dupont.com/cristy/ImageMagick.html

-----------------------------

I have used ImageMagick to convert from a depth 24 xwd to color
postscript.  In addition ImageMagick can convert to/from a wide
variety of graphics formats.  It also has some neat image processing
utilities.

Note:  I am just a casual user of ImageMagick, but from what I have
seen it is well worth looking into.

John Morris
HP - Atlanta

 
 
 

Xwindow screen -> color postscript file

Post by Bill Hasse » Fri, 06 Sep 1996 04:00:00


: Does anyone know of a way to do a screen dump, and save it to either a
: postscript or HPGL file and retain the color that was on the screen?

: I've tried: xwd -xy /tmp/print.xwd  
:             xpr xpr -device pjetxl  /tmp/print.xwd | lp -dphaser220PS

: and get the following error:
:           xpr: XY format image, multiplane images must be Z format.

: xwd without -xy looks like it creates a black and white file.

  xpr hasn't been updated for several years so Postscript is level 1 which
  means no color.  For multiplane and other visual renderings including
  private colormaps, xwd needs to be patched for 9.xx (PHSS_5902) and
  then you can pipe it to xwd2sb, then pcltrans and finally to the
  printer (PCL in this case).  Shareware is also an option.

--

           __?__
          /     \
         / ^   ^ \
        ( (o) (o) )
         \       /
*=oOOO======(_)=====OOOo====*=====================================*
|   Bill Hassell            |  Hewlett-Packard Response Center    |

*=============Oooo.=========*=====================================*
      .oooO   (   )
       (   )    ) /   "There are two types of computer users in the
        \ (    (_/     world...those that have lost data, and those
         \_)           that are going to."        (blh, circa 1972)

 
 
 

Xwindow screen -> color postscript file

Post by Arian Lodd » Fri, 06 Sep 1996 04:00:00



> Does anyone know of a way to do a screen dump, and save it to either a
> postscript or HPGL file and retain the color that was on the screen?

> I've tried: xwd -xy /tmp/print.xwd  
>             xpr xpr -device pjetxl  /tmp/print.xwd | lp -dphaser220PS

> and get the following error:
>           xpr: XY format image, multiplane images must be Z format.

> xwd without -xy looks like it creates a black and white file.

  Try `xgrab' with options for window/screen/selection and output
  to bitmap/xpm/PostScript (Color and B/W)

  Good luck

    Arian

--
_______________________________________________________________________

       _/_/   _/_/_/   _/_/_/   _/_/   _/    _/ A.W. Lodder

   _/_/_/_/ _/_/_/_/   _/   _/_/_/_/ _/  _/_/ phone:
  _/    _/ _/  _/     _/   _/    _/ _/    _/       +31 (0)30 - 253 2955
 _/    _/ _/    _/ _/_/_/ _/    _/ _/    _/ fax  : +31 (0)30 - 253 7555

University of Utrecht, Department of Computer Topics in Physics
Princetonplein 5 / P.O. Box 80000, 3508 TA Utrecht, The Netherlands
_______________________________________________________________________

 
 
 

Xwindow screen -> color postscript file

Post by Doug Nehrin » Fri, 06 Sep 1996 04:00:00



> Does anyone know of a way to do a screen dump, and save it to either a
> postscript or HPGL file and retain the color that was on the screen?

> I've tried: xwd -xy /tmp/print.xwd
>             xpr xpr -device pjetxl  /tmp/print.xwd | lp -dphaser220PS

> and get the following error:
>           xpr: XY format image, multiplane images must be Z format.

> xwd without -xy looks like it creates a black and white file.

> xpr man page mentions "multiplane images must be recorded by xwd in ZPixmap
> format.  Single plane (monochrome) images may be either XYPixmap or Zpixmap
> format."

> +--------------------------------------------------------------------------+
> | Bill Metzger                  Phone: (713) 274-2079  _/_/_/_/_/  _/_/_/  |
> | Unix System Administration    Fax: (713) 274-2067       _/        _/     |
> | Texas Instruments, Inc.       TI msg id: wlm           _/        _/      |

> +--------------------------------------------------------------------------+

I've been able to capture a color screen and print it out to an HP1600.
Here are the basic steps that I took.
1. Make sure that the window or screen you want to grab and print is
fully exposed.

2. In a term window, enter the following:

 xwd -out name.ps

        where name.ps is the name of the file to save the data in

3. The cursor will turn to a cross-hair; click this cursor in the screen
you want to capture--it may take a while to capture the screen, but when
the prompt returns in the term window, the screen capture is done.

4. To print the captured screen, type the following:

xpr -device pjetxl name.ps | lp -dprinter

where name.ps is the name used above and printer (in -dprinter) is your
printer name.

Hope this helps, if not, let me know

Doug Nehring

Paveway III
Texas Instruments

 
 
 

1. filters for postscript 3 -> postscript 2

Anyone out there know of/seen/have/ filters that will convert a psotscript
3 job to postscript 2?  We are using HP Open View/Optivity and in the new
Optivity / Network Atlas prints as postscript 3.  This is a real bummer
since we have no ps  3 printer.  We have a HP D Class 9000 running HPUX
10.01 and HP OV 4.01.

Any help would be appreciated

Chris Powers

2. Theory of Speech Acts

3. Need a utility for XWindow screen capture & TIF conversion

4. standard type sizes

5. Printing color postscript to HP DeskJet 2000C

6. A question for users of Arachne

7. Change background colors in postscript

8. HP1or200LX wanted or cash.. LOTS TO TRADE/SELL .. please read

9. gif to postscript printer (color)

10. converting xwd to colour postscript

11. Q: Print Postscript to a NOT PS enhanced HP Color LaserJet 5 Printer?

12. Color Postscript with xpr

13. Is there a xwd to color postscript converter???