Thread View: adobe.postscript.programming
6 messages
6 total messages
Started by Micky Handel
Mon, 08 Jul 2002 12:44
Modifying printer setgray value
Author: Micky Handel
Date: Mon, 08 Jul 2002 12:44
Date: Mon, 08 Jul 2002 12:44
2 lines
1080 bytes
1080 bytes
Hello, I have been trying to modify the setgray value for better printing performance, meaning more accurate lightness data. I was able to achieve it only by changing the PS file I print. I have looking for a way to modify the PPD file or download a PS code directly to the printer using exitserver operator, but with no success. How can I achieve it?
Re: Modifying printer setgray value
Author: Aandi Inston
Date: Mon, 08 Jul 2002 12:50
Date: Mon, 08 Jul 2002 12:50
4 lines
931 bytes
931 bytes
This sounds like something that should be done with a transfer function, not modifying the code... Aandi Inston
Re: Modifying printer setgray value
Author: Micky Handel
Date: Tue, 09 Jul 2002 07:31
Date: Tue, 09 Jul 2002 07:31
6 lines
1075 bytes
1075 bytes
Hey Aandi, I did write a transfer function, and it works well while in the PS files themselves, meaning in the VM. However, I would like to use it directly either in the PPD file or by changing persistent parameters in the non-volatile memory of the printer. I wasn't able to change either of them, this is my problem. Micky
Re: Modifying printer setgray value
Author: Aandi Inston
Date: Tue, 09 Jul 2002 08:16
Date: Tue, 09 Jul 2002 08:16
11 lines
1339 bytes
1339 bytes
It can be difficult to do things with PPD files that weren't planned; for instance changing the default in a PPD sounds as though it should have the effect of setting that value, but it may have the opposite effect, since the default is intended to tell the driver what the printer's default actually is, and so it does not need to set it. If your PPD consumer supports the "patch file" feature that may be the safest bet. Bear in mind a transfer function has to be set at the start of each page. Aandi Inston
Re: Modifying printer setgray value
Author: Micky Handel
Date: Tue, 09 Jul 2002 09:06
Date: Tue, 09 Jul 2002 09:06
17 lines
1554 bytes
1554 bytes
Hey Aandi,
I belong to a research field and am interested in the different methods to change the output by tranfer functions.
I have written a setgray tranfer function. A much simpler version of my tranfer function is as followed:
/NEWsetgray {setgray} bind def
/setgray {0.5 exp NEWsetgray } def
I have included these two lines at the beginning of PS files and the output was changed to a lighter one as desired.
I have indluded these two lines also in the startup directory of the Adobe Acrobat Distiller and the output was changed as well.
Now I am interested in including these two lines in the PPD file of the printer and to see the effect.
I also like to see the effect of saving these two lines directly in the printer memory, maybe using exitserver operator and changing statusdict.
Micky
Re: Modifying printer setgray value
Author: Aandi Inston
Date: Tue, 09 Jul 2002 10:01
Date: Tue, 09 Jul 2002 10:01
24 lines
1829 bytes
1829 bytes
>Hey Aandi,
>I belong to a research field and am interested in the different methods to change the output by tranfer functions.
>I have written a setgray tranfer function. A much simpler version of my tranfer function is as followed:
>
>/NEWsetgray {setgray} bind def
>
>/setgray {0.5 exp NEWsetgray } def
That's not a transfer function!
See the PostScript language reference for the definition of a transfer
function.
>Now I am interested in including these two lines in the PPD file of the printer and to see the effect.
See my previous advice about the patch file feature.
>I also like to see the effect of saving these two lines directly in the printer memory, maybe using exitserver operator and changing statusdict.
You could probably do that. Do remember that many jobs will set
colours in other ways, and that you are not affecting images. Hence,
the recommendation to use a real transfer function.
Aandi Inston
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads