bug-ghostscript
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help Regardig ghostscript


From: Tanzeem Ahmed
Subject: Help Regardig ghostscript
Date: Fri, 21 Sep 2001 06:55:46 -0700 (PDT)

Hello Sir,
  
    I have developed a serial port thermal printer
driver under linux.
    
    my printer resolution is 192x192.it prints 72
bytes
    per band.it works on 115200 baud rate.

 

    if i write following command.
   
cat mytextfile|pbmtext|pnmnoraw|mydriver>/dev/ttyS0

then my printer prints mytextfile properly.

My driver basically depends on PBM files.

 Now,i want to print from gedit or any application,
 in that case i am writing a queue in printcap file,
 
 receipt:\
    :sh:\
    :ml=0:\
    :mx=0:\
    :sd=/var/spool/lpd/receipt:\
    :lp=/dev/ttyS0:\
    :lpd_bounce=true:\
    :br#115200:\
    :if=/var/spool/lpd/receipt/filter:\

    
Now in filter shell script file i am writing.

#!/bin/bash
gs -sDEVICE=pbm -sOutputFile=- -q -r192x192 -g576x782
\
   - -c quit |mydriver 

when i  write lpr -P receipt in print option of gedit 
it print blank pages three times,queue name
is given in printcap file.

The meaning of above gs command according to my point
of view is gs get the data from stdin(gedit) & it 
convert in pbm format & pass to the mydriver utilitie.


Sir ,Please explain me where i am wrong & what is the
exact meaning of this gs command.What should be the
exact gs command for my printer.

Can i generate PBM file of any text file using gs
command on the command prompt to check gs is
generating PBM file or not.


Please write me the proper steps .


Regards 
Tanzeem





 




 
   


    
 

__________________________________________________
Terrorist Attacks on U.S. - How can you help?
Donate cash, emergency relief information
http://dailynews.yahoo.com/fc/US/Emergency_Information/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]