jac@comtst.UUCP (Jeff A. Copeland) (01/17/91)
Using ISC Unix 2.0.2 and X11R3 server, we would like to get a hard copy of a window to an HP LaserJet II printer. The steps we were taking are: xwd -nobdrs >/usr/tmp/xwdfile || note as an aside that when we gave the -nobdrs (no mwm borders) option || that this does not apparently work, because when we do an "undump" || to see that the above xwd command worked, we get the border as well as || the window captured from above. FYI, the undump we did as: xwud -in /usr/tmp/xwdfile || however, when we take the xwdfile and try to run it thru xwdtopbm: xwdtopbm </usr/tmp/xwdfile >/usr/tmp/pbmfile we get the following msg: Can't handle X11 pixmap_depth != 1. Since we have a 4 bit VGA server, we then tried to set up the server to be black and white by editing /usr/lib/X11/Xconfig to change the number of colors from 16 to 2: display PVGA1A "800x600 2 11x8" 0 /dev/console The display appeared then to run as a monochrome server, so we then ran xwd again. We thought we were on the right track and got to the "pbmtolj" step (output to the laser printer), but it came out garbled. Then, we went back and did an undump because we wanted to know what failed, the dump or the conversion to the pbmfile. The dump (xwd) failed, 'xwdtopbm' and 'pbmtolj' did their jobs. Summarizing, 'xwd' worked when the server was color, but 'xwdtopbm' failed on pixmap_depth != 1. With the (fooled) black and white server, 'xwd' fails. Does anyone have any suggestions? Thanks in advance, Jeff Copeland Domain Systems, Inc. 407-686-7911 jac@domain.com West Palm Beach, Fl.
mouse@lightning.mcrcim.mcgill.EDU (01/24/91)
> xwdtopbm </usr/tmp/xwdfile >/usr/tmp/pbmfile > we get the following msg: > Can't handle X11 pixmap_depth != 1. > [W]e have a 4 bit VGA server, xwdtopbm produces a pbm output file. pbm files are always 1-bit; xwdtopbm naturally doesn't like xwd files deeper than 1 bit. Try using xwdtoppm instead. I don't know what's wrong with xwd on the one-bit server. der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu