1 % Copyright (C) 1991, 1992, 1998 Aladdin Enterprises. All rights reserved.
3 % This software is provided AS-IS with no warranty, either express or
6 % This software is distributed under license and may not be copied,
7 % modified or distributed except as expressly authorized under the terms
8 % of the license contained in the file LICENSE in this distribution.
10 % For more information about licensing, please refer to
11 % http://www.ghostscript.com/licensing/. For information on
12 % commercial licensing, go to http://www.artifex.com/licensing/ or
13 % contact Artifex Software, Inc., 101 Lucas Valley Road #110,
14 % San Rafael, CA 94903, U.S.A., +1(415)492-9861.
16 % $Id: unprot.ps,v 1.4 2002/02/21 21:49:28 giles Exp $
17 % Disable all access checks. This is useful for printing out
18 % eexec-encrypted Type 1 fonts, and similar purposes.
21 { /protdict systemdict def
23 { (Please restart Ghostscript with the -dWRITESYSTEMDICT switch.\n) print
24 (Some access checks will remain active if you do not do this.\n) print
26 /protdict userdict def
30 % The procedures we're about to define will go in systemdict,
31 % so they must be allocated in global VM.
33 .currentglobal true .setglobal
36 /readonly. /readonly load def
37 /executeonly. /executeonly load def
38 /noaccess. /noaccess load def
40 /readonly.. /readonly load def
42 /executeonly.. /executeonly load def
44 /noaccess.. /noaccess load def
47 % Disable the access checks.
51 /readonly /readonly.. load def
52 /executeonly /executeonly.. load def
53 /noaccess /noaccess.. load def
57 % Re-enable the access checks.
61 /readonly /readonly. load def
62 /executeonly /executeonly. load def
63 /noaccess /noaccess. load def