From norbert.janssen at oce.com Thu Sep 21 02:30:40 2006 From: norbert.janssen at oce.com (Janssen, Norbert) Date: Fri Sep 22 09:24:14 2006 Subject: [bug-gs] How to add HalftoneType 3 to gs_init.ps? Message-ID: <13EB207C7F764640BBFF6607CEF9300402652AD8@OVL-EXBE01.ocevenlo.oce.net> 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@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. From norbert.janssen at oce.com Thu Sep 21 02:41:35 2006 From: norbert.janssen at oce.com (Janssen, Norbert) Date: Fri Sep 22 09:24:15 2006 Subject: [bug-gs] How to add HalftoneType 3 to gs_init.ps? Message-ID: <13EB207C7F764640BBFF6607CEF9300402652AFF@OVL-EXBE01.ocevenlo.oce.net> Hello Support, (second try, now with attachment: my_halftone.ps). 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@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. -------------- next part -------------- A non-text attachment was scrubbed... Name: my_halftone.ps Type: application/postscript Size: 4187 bytes Desc: my_halftone.ps Url : http://ghostscript.com/pipermail/bug-gs/attachments/20060921/ddb87bc0/my_halftone.ps