I'm having minor problems with the drivers i think. I have installed
Ghostscript on my QNX4 system, and by running it I can display a postscript
picture in my photon window. Instead I wish to port the output to a colour
printer (non postscript printer).
When I print the picture - GS -q -sOutputFile=- -sDEVICE=paintjet
>/dev/par1 - I get a printout that has the picture, but wherever a new
colour is introduced, the whole line is printed that colour, so I get a
disturbing streaking effect across the whole picture. This is not a printer
fault. I also tried printing to a Deskjet500C, but after a few lines it
reverted to characters/garbage (using DEVICE=cdj500)
has anyone else tested this particular environment (or any ideas would be
appreciated)
i installed ghostscript with the "make photon" command first. seems ok as it
brings up a perfect image on the screen (default DEVICE in photon
environment)
I've played with a PaintJet ENDLESSLY to try and get ghostscript to work
properly WITHOUT success. However, the DeskJet500C, with a little
work, will produce glorious output.
The reverting to characters/garbage after a few lines is a common
problem.
What you need to do is check the settings on your /dev/par port. If
I'm not mistaken you may have the post-processing
bit/mask/option/whatever
turned ON (+opost should be -opost). This needs to be off to get
pictures
which mean anything. I once modified a /etc/config/lpsrvr.$NODE file to
automatically turn this option off at the start of the print job, and
then
back on when the job was done, when I was printing in colo(u)r. I can't
remember how I did it but use stty on the port and it may be obvious.
If not, send me some email and I'll dig it up.
Regards,
Mark D. Oliver
Cogent Real-Time Systems Inc.
m...@cogent.ca
: I'm having minor problems with the drivers i think. I have installed
: Ghostscript on my QNX4 system, and by running it I can display a postscript
: picture in my photon window. Instead I wish to port the output to a colour
: printer (non postscript printer).
: When I print the picture - GS -q -sOutputFile=- -sDEVICE=paintjet
: >/dev/par1
This is the script I use to print a postscript file (change the printer to
whatever you are using) :
stty -opost <//2/dev/par
rm /tmp/gs_*
gs -r300 -sDEVICE=laserjet -sOutPutFile=gs%d -dNOPAUSE -q $*
cat /tmp/gs_* >//2/dev/par
: - I get a printout that has the picture, but wherever a new
: colour is introduced, the whole line is printed that colour, so I get a
: disturbing streaking effect across the whole picture. This is not a printer
: fault. I also tried printing to a Deskjet500C, but after a few lines it
: reverted to characters/garbage (using DEVICE=cdj500)
: has anyone else tested this particular environment (or any ideas would be
: appreciated)
This can happen if you have "+opost" set on the port - the CRs get changed
to NLCRs. You want to output raw binary in this case.
Greg Bergsma
DIRECTOR, BUSINESS DEVELOPMENT
==========================================================
Computer Network Systems Pty Ltd _--_|\
A.C.N. 008 594 572 / \
email : gr...@cns.com.au \_.--._/
v
----------------------------------------------------------
Distributors for : QNX Real-time Operating System
Raima High-performance Databases
Comtrol and Connect-Tech
Sync/async serial solutions
----------------------------------------------------------
Unit 2/3, 26 Antill Street | Phone : +61 6 247 9088
DICKSON ACT 2602 | Fax : +61 6 247 9046
Australia |
==========================================================