home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / APPS / gs403osk.tgz / gs403osk.tar / pdf_sec.ps < prev    next >
Text File  |  1996-10-12  |  2KB  |  54 lines

  1. %    Copyright (C) 1996 Aladdin Enterprises.  All rights reserved.
  2. % This file is part of Aladdin Ghostscript.
  3. % Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  4. % or distributor accepts any responsibility for the consequences of using it,
  5. % or for whether it serves any particular purpose or works at all, unless he
  6. % or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  7. % License (the "License") for full details.
  8. % Every copy of Aladdin Ghostscript must include a copy of the License,
  9. % normally in a plain ASCII text file named PUBLIC.  The License grants you
  10. % the right to copy, modify and redistribute Aladdin Ghostscript, but only
  11. % under certain conditions described in the License.  Among other things, the
  12. % License requires that the copyright notice and this notice be preserved on
  13. % all copies.
  14.  
  15. % pdf_sec.ps
  16. % Security hooks for PDF reader.
  17.  
  18. % This file contains the procedures that have to take encryption into
  19. % account when reading a PDF file.  There is no actual decryption code here,
  20. % because U.S. export control laws might prohibit making this file available
  21. % to anyone outside the U.S. if the code were included.  Instead, you can
  22. % get the real version of this file from
  23. %   http://www.ozemail.com.au/~geoffk/pdfencrypt/pdf_sec.ps
  24. % or, if the ~ character upsets your software,
  25. %   http://www.ozemail.com.au/%7Egeoffk/pdfencrypt/pdf_sec.ps
  26.  
  27. /.setlanguagelevel where { pop 2 .setlanguagelevel } if
  28. .currentglobal true .setglobal
  29. /pdfdict where { pop } { /pdfdict 100 dict def } ifelse
  30. pdfdict begin
  31.  
  32. % Process the encryption information in the Trailer.
  33. /pdf_process_Encrypt
  34.  { (****This file is encrypted and cannot be processed.\n) print flush
  35.    /pdfopen cvx /invalidfileaccess signalerror
  36.  } bind def
  37.  
  38. % Run the code to resolve an object reference.
  39. /pdf_run_resolve
  40.  { PDFfile resolveopdict .pdfrun
  41.  } bind def
  42.  
  43. % Prefix a decryption filter to a stream if needed.
  44. % Stack: readdata? dict parms file/string filternames
  45. /pdf_decrypt_stream
  46.  {
  47.  } bind def
  48.  
  49. end         % pdfdict
  50. .setglobal
  51.