[comp.lang.postscript] X11 window dumps to postscript

rroux@betelgeuse.sdd.trw.com (Ray Roux) (05/30/91)

I'm looking for a way of producing encapsulated postscript from an X11
screen dump.  I have some windows that I want to get a snap shot of and
include them in a LaTeX document.  I tried the following sequence with
limited success:
	xwd | xwdtoppm | ppmtopgm | pgmtops > file.ps

The problem here is that the window trim is removed and that the
bounding box isn't correct if I use the scale option of pgmtops.  I've
heard there is another set of bit manipulation routines (Fuzzy Bitmap
Manipulation FBM) but haven't been able to locate it.

Are there any other ways to get window dumps into EPS?

Thanks,
	Ray Roux
	rroux@betelgeuse.sdd.trw.com

  Ray Roux
    rroux@rigel.sdd.trw.com

englehar@SRC.Honeywell.COM (Matt Englehart) (05/30/91)

xgrabsc (posted to comp.sources.x) works well

bijal@hpopd.pwd.hp.com (Bijal Shah) (05/30/91)

/ hpopd:comp.lang.postscript / englehar@SRC.Honeywell.COM (Matt Englehart) /  3:11 am  May 30, 1991 /
xgrabsc (posted to comp.sources.x) works well
----------

	also xwd2ps.  The source is (was) on export.lcs.mit.edu in
	/contrib

					BJ

steele@mountaindew.rtp.dg.com (Michael Steele) (06/12/91)

In article <2843ECBE.1486@deneva.sdd.trw.com>, rroux@betelgeuse.sdd.trw.com (Ray Roux) writes:
|> I'm looking for a way of producing encapsulated postscript from an X11
|> screen dump.  I have some windows that I want to get a snap shot of and
|> include them in a LaTeX document.  I tried the following sequence with
|> limited success:
|> 	xwd | xwdtoppm | ppmtopgm | pgmtops > file.ps
|> 
|> The problem here is that the window trim is removed and that the
|> bounding box isn't correct if I use the scale option of pgmtops.  I've
|> heard there is another set of bit manipulation routines (Fuzzy Bitmap
|> Manipulation FBM) but haven't been able to locate it.

Under X11 R4 you can do an:
	xwd -frame | xpr -dev ps > filename.ps

I beleive xpr comes on the MIT R4 contrib tape.  This series of commands will 
capture a window, including the frame and will then convert it to postscript.

-- 
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
  Michael Steele		steele@dg-rtp.dg.com or mikes@catt.ncsu.edu
  Data General Corporation -- Building the finest Workstations in Industry
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

woody@chinacat.unicom.com (Woody Baker @ Eagle Signal) (06/13/91)

I know this is not the place to post this request, but we don't get the
MS-DOS usnet group.  Will someone from Microsoft tech support drop me
an email note, I have some questions concerning the FAT table handling
of DOS 5.0
Thanks
Cheers
Woody