[bug-gs] How to add HalftoneType 3 to gs_init.ps?

Janssen, Norbert norbert.janssen at oce.com
Thu Sep 21 02:30:40 PDT 2006


Hello Support,

I try to add a HalftoneType 3 to the gs_init.ps file but get the
following
error  (on gs8.54). In the gs_init.ps the following code is added:
+++ start gs_init.ps code

% Load the standard font environment.
%% Replace 1 (gs_fonts.ps)
(gs_fonts.ps) runlibfile

(END GS_FONTS) VMDEBUG

% Load my halftone definitions
(my_halftone.ps) runlibfile

+++ end gs_init.ps code

Put the my_halftone.ps file (see attachement) in the current directory
(this is also
searched), or in the share/ghostscript/8.54/lib (next to gs_init.ps).
Then do

gs -DDEBUG

and this gives the following error:
+++ start error output
while reading my_halftone.ps
Error: /syntaxerror in -file-
Operand stack:
   MyDefaultHalftone
Execution stack:
   %interp_exit   --nostringval--  --nostringval--  false  1
%stopped_push
Dictionary stack:
   --dict:702/1123--  --dict:61/200--  --dict:702/1123--
Currnet file position is 40803
Unrecoverable error: undefined in .uninstallpagedevice
Operand stack:
   MyDefaultHalftone
+++ end error output

Placing the contents directly in the gs_init.ps gives a similar error
(--nostringval-- and the undefined in .uninstallpagedevice).

This .uninstallpagedevice is in gs_setpd.ps, but as far as I understand
it, the error is
happening while loading the my_halftone.ps.

Can someone see what I am doing wrong?

Thanks and greetings,

--
Norbert Janssen 
tel. +31 77 359 3599
email. norbert.janssen at oce.com

This message and attachment(s) are intended solely for the use of the addressee and may contain information that is privileged, confidential or otherwise exempt from disclosure under applicable law.  
If you are not the intended recipient or agent thereof responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited.  
If you have received this communication in error, please notify the sender immediately by telephone and with a "reply" message.  
Thank you for your cooperation.




More information about the bug-gs mailing list