HTFC Forums

H.T.F.C.

How To Fix Computers





Go Back   HTFC Forums > Hardware Newsgroups > Printers

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1  
Old 05-10-2008, 01:25 PM
sean_n
 
Posts: n/a
Default altering postscript code on the fly to get pure black and white

Hello, this might not be the right group, but since it's related to
printers, I'll try it here too. Is it possible to alter postscript
code (not manually, but on the fly via a script or utility or
whatever) before it is sent to a printer? I'm guessing not, but just
thought i'd ask just in case. I want to convert the postscript code
so that it prints pure black and white, no greyscale. Our users are
complaining that the greyscale is coming out too dim. I was thinking
about inserting the following line at the beginning of the postscript
stream,

{.999 lt {0}{1}ifelse} settransfer

Alternatively, I have considered setting up the printer queue so that
it prints to a postscript file instead of sending it to the printer
(This is done by setting the local port to a file path instead of an
IP address). Then altering the file via some script, then sending it
to the printer. Although, this really doesn't work well in a
multiuser environment as the file can get overwritten before it is
altered.

Please send any suggestions that might help, thankyou.

p.s. Some background on me, in case it helps. I don't know anything
about developing printer drivers, but i know C++ and am willing to try
driver development if necessary.
Reply With Quote
Sponsored Links
Fix your Windows Problems - FAST.
FREE Safe Scan Registry Check. Locate & Fix Errors in Minutes!
  #2  
Old 05-10-2008, 01:32 PM
Elmo P. Shagnasty
 
Posts: n/a
Default Re: altering postscript code on the fly to get pure black and white

In article
<08879eb1-3216-4c36-ba3f-a80aa93b0ac1@p25g2000pri.googlegroups.com>,
sean_n <seannakasone@yahoo.com> wrote:

> Hello, this might not be the right group, but since it's related to
> printers, I'll try it here too. Is it possible to alter postscript
> code (not manually, but on the fly via a script or utility or
> whatever) before it is sent to a printer?


Sure. Just make sure it gets dumped to a folder first, and you can make
a VBA or something like that to parse through it and alter it however
you'd like.



> Alternatively, I have considered setting up the printer queue so that
> it prints to a postscript file instead of sending it to the printer
> (This is done by setting the local port to a file path instead of an
> IP address). Then altering the file via some script, then sending it
> to the printer.


Exactly.

Reply With Quote
  #3  
Old 05-11-2008, 05:43 AM
Pat
 
Posts: n/a
Default Re: altering postscript code on the fly to get pure black and white


"sean_n" <seannakasone@yahoo.com> wrote in message
news:08879eb1-3216-4c36-ba3f-a80aa93b0ac1@p25g2000pri.googlegroups.com...
> Hello, this might not be the right group, but since it's related to
> printers, I'll try it here too. Is it possible to alter postscript
> code (not manually, but on the fly via a script or utility or
> whatever) before it is sent to a printer? I'm guessing not, but just
> thought i'd ask just in case. I want to convert the postscript code
> so that it prints pure black and white, no greyscale. Our users are
> complaining that the greyscale is coming out too dim. I was thinking
> about inserting the following line at the beginning of the postscript
> stream,
>
> {.999 lt {0}{1}ifelse} settransfer
>
> Alternatively, I have considered setting up the printer queue so that
> it prints to a postscript file instead of sending it to the printer
> (This is done by setting the local port to a file path instead of an
> IP address). Then altering the file via some script, then sending it
> to the printer. Although, this really doesn't work well in a
> multiuser environment as the file can get overwritten before it is
> altered.
>
> Please send any suggestions that might help, thankyou.
>
> p.s. Some background on me, in case it helps. I don't know anything
> about developing printer drivers, but i know C++ and am willing to try
> driver development if necessary.


I use a perl script to modify a postscript file before printing. My script
simply adds some printer specific paper tray commands.


Reply With Quote
  #4  
Old 05-11-2008, 07:57 AM
sean_n
 
Posts: n/a
Default Re: altering postscript code on the fly to get pure black and white


> I use a perl script to modify a postscript file before printing. *My script
> simply adds some printer specific paper tray commands.- Hide quoted text -


Is the perl script launched automatically after a print job? If so,
can you describe the process, what triggers the script?
Reply With Quote
  #5  
Old 05-11-2008, 03:58 PM
Pat
 
Posts: n/a
Default Re: altering postscript code on the fly to get pure black and white


"sean_n" <seannakasone@yahoo.com> wrote in message
news:f6d63039-b238-4808-9286-9826fdcb55fd@w8g2000prd.googlegroups.com...

> I use a perl script to modify a postscript file before printing. My script
> simply adds some printer specific paper tray commands.- Hide quoted text -


Is the perl script launched automatically after a print job? If so,
can you describe the process, what triggers the script?

The postscript file is created by a program. The program calls the perl
script to modify the file and sends it to the printer.


Reply With Quote
Sponsored Links
Fix your Windows Problems - FAST.
FREE Safe Scan Registry Check. Locate & Fix Errors in Minutes!
Reply


Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Black and White theme? Movies32 Windows XP 3 01-24-2008 09:06 PM
WMP 11 Vista - Black/White Only DLH Windows Vista 3 10-13-2007 02:57 PM
black and white lurk Digital Photo 3 08-19-2007 07:29 AM
Greyscale or black and white kayla Digital Photo 11 06-29-2007 02:59 PM
Some black-and-white photographs yatuo-kui Digital Photo 0 06-16-2007 07:13 AM


All times are GMT. The time now is 02:02 PM.


Powered by vBulletin® Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004 - 2007 Web-S-Sense Pty. Ltd. Usenet and forums posts © their respective authors.
Ad Management by RedTyger