home *** CD-ROM | disk | FTP | other *** search
/ jppd.dyndns.org / jppd.dyndns.org.tar / jppd.dyndns.org / QUERYPRO / Impressora_PDF / converter.exe / GPLGS / unprot.ps < prev    next >
Text File  |  2002-02-22  |  2KB  |  68 lines

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