Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

GHOSTScript - printing a ps image to a HP Paintjet on LPT1

0 views
Skip to first unread message

Philip Court

unread,
Sep 4, 1996, 3:00:00 AM9/4/96
to

Hi

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)


KSCom

unread,
Sep 4, 1996, 3:00:00 AM9/4/96
to

Philip Court (court.p...@bhp.com.au) wrote:
: I'm having minor problems with the drivers i think. I have installed
[snip]
There's a usenet group comp.lang.postscript and a gnu.ghostscript. I
think you might get more help there. The ghostscript drivers are
fairly OS independent, so the fact that you are running on QNX should
be irrelevant.
Richard Kramer


Mark Oliver

unread,
Sep 5, 1996, 3:00:00 AM9/5/96
to

Philip Court wrote:
>
> Hi

>
> I'm having minor problems with the drivers i think. I have installed

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

Greg Bergsma

unread,
Sep 5, 1996, 3:00:00 AM9/5/96
to

Philip Court (court.p...@bhp.com.au) wrote:
: Hi

: 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 |
==========================================================


0 new messages