Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!lll-winken!uunet!datapg!com50!pai!erc From: erc@pai.UUCP (Eric Johnson) Newsgroups: comp.windows.x Subject: Re: xwd to postscript again Summary: Try Portable Bitmap library (PBM) Message-ID: <477@pai.UUCP> Date: 21 Apr 89 14:14:31 GMT References: <843@garcon.cso.uiuc.edu> Organization: Prime Automation, Inc., Burnsville, MN Lines: 61 In article <843@garcon.cso.uiuc.edu>, page@ferrari.ece.uiuc.edu (Ward Page) writes: > > Thanks to everyone who sent me the xpr suggestion. However, I failed to mention > that I am running xwd and xpr under X10.4 not X11. Under my version of xpr > -dev lw or ps is not supported (I am running Ultrix 2.?). Therefore, is there > a filter that converts an X10.4 xwd to postscript, OR an X10 version of xpr that > supports -dev ps or lw, OR a conversion program that takes X10 xwd dumps and > converts them to X11 xwd format (I have access to an X11 system with xpr). > Again, any help is greatly appreciated. > > > Ward Page > University of Illinois > page@ferrari.ece.uiuc.edu Try Jef Poskanzer's PBM code. PBM is an ASCII-based monochrome image format. The PBM package (which was distributed over Usenet) contains a number of programs to convert various formats to PBM and then to convert PBM images to various formats. The way it works is this: 1) Use xwd to get an xwd image file for a window under X10 (PBM also converts X11 xwd format). 2) Use xwdtopbm to convert your xwd image to PBM format, % xwdtopbm foo.xwd > foo.pbm 3) Use pbmtops to convert the PBM file to PostScript. (I don't have a PostScript printer, so your mileage may vary.) % pbmtops foo.pbm > foo.ps 4) Click your heels together and repeat "there's no place like home," "there's no place like home." I hope this helps. PBM was distributed over Usenet at least once. It is also available for anon. FTP, I think. The X11 R3 release from the MIT X Consortium also had a version of PBM. Since you said you have access to X11, look there first. I'm running a rather old version ( 31 Oct 88), so I suggest you find the latest and greatest. In the README, Jef Poskanzer's email address was: jef@rtsg.ee.lbl.gov or {ucbvax, lll-crg, sun!pacbell, apple, hplabs}!well!pokey Good luck and have fun, -Eric -- Eric F. Johnson | Phone +1 612-894-0313 | Are we Prime Automation,Inc | UUCP: bungia!pai!erc | having 12201 Wood Lake Drive | UUCP: sun!tundra!pai!erc | fun Burnsville, MN 55337 USA | DOMAIN: erc@pai.mn.org | yet?