Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!sdd.hp.com!cs.utexas.edu!convex!texsun!geraldo.Central.Sun.COM!west!newstop!sun!amdcad!dgcad!dg-rtp!mountaindew!steele From: steele@mountaindew.rtp.dg.com (Michael Steele) Newsgroups: comp.lang.postscript Subject: Re: X11 window dumps to postscript Message-ID: <1991Jun11.202802.27950@dg-rtp.dg.com> Date: 11 Jun 91 20:28:02 GMT References: <2843ECBE.1486@deneva.sdd.trw.com> Sender: steele@mountaindew (Michael Steele) Distribution: usa Organization: Data General Corporation, Research Triangle Park, NC Lines: 22 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 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>