Re: HP 720C

2000-10-06 Thread Nadav Har'El

On Thu, Oct 05, 2000, Noam Meltzer wrote about "HP 720C":
> Ooop
> I checked now in the printing howto, and I found out that it is
> supported under linux. Very strange to me because I remembered that it
> wasn't, especially because I have one in work, and I checked about it.

Take a look at http://sourceforge.net/projects/pnm2ppa/

For at least 2 years now, this guy (I forgot his name) was trying to
reverse engineer HP's "HP Printing Architecture" (the proprietary protocol
the windows drivers were using to communicate with the printer, used in the
720C and several other printers).
When I got my 720C printer, about 2 years ago, these drivers only worked in
black-and-white, but they now work in color, quite nicely, and the 720C
(or whatever successor to it they sell now) is a good, cheap, printer for
Linux.

I set up my printer on my own (I had Redhat 6.0 then), but since Redhat 6.2
the 720C is supported directly by redhat (run printtool) - so if you're having
trouble it's probably some other configuration error, not an unsupported
printer.

For the curious:

What I have done (redhat does a very similar thing, I guess) is to set up a
print filter that takes a postscript file, run gs on it to produce a bitmap,
and then convert the bitmap in to the HP PPA format to send to the printer:

In /etc/printcap I put
lp|HP DeskJet 720C:\
:lp=/dev/lp0:\
:sd=/var/spool/lpd/lp:\
:lf=/var/spool/lpd/lp/log:\
:af=/var/spool/lpd/lp/acct:\
:if=/usr/local/bin/ps.if:\
:la:mx#0:\
:sh:sf:

lpc|HP DeskJet 720C:\
:lp=/dev/lp0:\
:sd=/var/spool/lpd/lp:\
:lf=/var/spool/lpd/lp/log:\
:af=/var/spool/lpd/lp/acct:\
:if=/usr/local/bin/psc.if:\
:la:mx#0:\
:sh:sf:

(two virtual printers - one for color printout, one for black-and-white),
and the two input filters are:

/usr/local/bin/ps.if:
gs -dSAFER -sPAPERSIZE=a4 -sDEVICE=pbmraw -q -dNOPAUSE -r600 -sOutputFile=- - | 
pbm2ppa - -
/usr/local/bin/psc.if:
gs -dSAFER -sPAPERSIZE=a4 -sDEVICE=ppmraw -q -dNOPAUSE -r600 -sOutputFile=- - | 
pnm2ppa - -

and my configuration files:
/etc/pbm2ppa.conf:
version  720
papersize   a4
xoff140 # \ Adjust these for your printer.
yoff-530 # / (see CALIBRATE)
top  150
bottom   150
left 150
right150
/etc/pnm2ppa.conf:
version  720# 710, 712, 722 also acceptable
papersize a4
ColOffsX-12
ColOffsY41
RedGammaIdx 6
GreenGammaIdx   3
BlueGammaIdx3
xoff140 # \ Adjust these for your printer.
yoff-530 # / (see CALIBRATE)
# 1/4 inch margins all around (at 600 DPI)
top  150
bottom   150
left 150
right150






-- 
Nadav Har'El|Friday, Oct 6 2000, 8 Tishri 5761
[EMAIL PROTECTED] |-
Phone: +972-53-245868, ICQ 13349191 |I don't suffer from insanity, I enjoy
http://nadav.harel.org.il   |every minute of it.

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]




Re: capture terminal text

2000-10-06 Thread avishaya


Ben-Nes Michael wrote:
Hi
Any one have idea or direction how to capture the text CURRENTLY shown
in a window under X.
For example what text netscape CURRENTLY show (view able).
Is there an X component that can be queried  for such information,
or
maybe memory segment ?
Docs and hints are welcomed :)
--
--
Canaan Surfing Ltd.
Internet Service Providers
Ben-Nes Michael - Manager
Tel: 972-6-6925757
Fax: 972-6-6925858
http://www.canaan.co.il
--
=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

If you want to capture the whole screen(including all the windows
+
 the main windows)
type:
# xwd -root -out dumpfile.out
 
to capture only a single window type:
# xwd -out dumpfile.xwd
and then click the changed cursor on the window you want to capture!!
 
at last you can convert this format to whatever format

you want with the "convert" util:

# convert dumpfile.xwd rasta.jpeg



references:

man xwd

man convert

cheers

-- 
Avishay Aton
Unix system administrator
mcse.
linux + freebsd lover.
[EMAIL PROTECTED]