viewps2a.ps 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. % Copyright (C) 1995 Aladdin Enterprises. All rights reserved.
  2. %
  3. % This file is part of AFPL Ghostscript.
  4. %
  5. % AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND. No author or
  6. % distributor accepts any responsibility for the consequences of using it, or
  7. % for whether it serves any particular purpose or works at all, unless he or
  8. % she says so in writing. Refer to the Aladdin Free Public License (the
  9. % "License") for full details.
  10. %
  11. % Every copy of AFPL Ghostscript must include a copy of the License, normally
  12. % in a plain ASCII text file named PUBLIC. The License grants you the right
  13. % to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14. % conditions described in the License. Among other things, the License
  15. % requires that the copyright notice and this notice be preserved on all
  16. % copies.
  17. % $Id: viewps2a.ps,v 1.2 2000/09/19 18:29:11 lpd Exp $
  18. % Display a file produced by ps2ascii with no switch or with -dCOMPLEX.
  19. % This is just a procset to read in before the file to display.
  20. /init { 0.1 0.1 scale } bind def
  21. init
  22. /next { currentfile token pop } bind def
  23. /F { next next pop next exch selectfont } bind def
  24. /P { showpage init } bind def
  25. /S
  26. { next next moveto
  27. next dup stringwidth pop next exch div
  28. gsave 1 scale show grestore
  29. } bind def
  30. /C { next next next setrgbcolor } bind def
  31. /I { next next next next gsave 0.75 setgray rectfill grestore } bind def
  32. /R { next next next next rectfill } bind def