星火微课系统客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

gs_cet.ps 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. %!PS
  2. % Set defaults for Ghostscript to match Adobe CPSI behaviour for CET
  3. % $Id: gs_cet.ps 10679 2010-02-01 00:02:04Z alexcher $
  4. % do this in the server level so it is persistent across jobs
  5. true 0 startjob not {
  6. (*** Warning: CET startup is not in server default) = flush
  7. } if
  8. 300 .sethiresscreen % needed for language switch build since it
  9. % processes gs_init.ps BEFORE setting the resolution
  10. 0 array 0 setdash % CET 09-08 wants local setdash
  11. currentglobal true setglobal
  12. {
  13. systemdict dup dup dup
  14. /version (3017.102) put % match CPSI 3017.102
  15. /product (PhotoPRINT SE 5.0v2) put % match CPSI 3017.102
  16. /revision 0 put % match CPSI 3017.103 Tek shows revision 5
  17. /serialnumber 233640 put % match CPSI 3017.102 Tek shows serialnumber 1401788461
  18. systemdict /deviceinfo undef % for CET 20-23-1
  19. } superexec
  20. { } bind dup
  21. setblackgeneration
  22. setundercolorremoval
  23. 0 array cvx readonly dup dup dup setcolortransfer
  24. % CPSI doesn't define "Localization" resource.
  25. /Localization /Category undefineresource
  26. % Redefine Font category to return -1 (unknown) VM usage
  27. % in all cases to avoid differences between hosts.
  28. /Font /Category findresource
  29. dup length dict copy
  30. dup
  31. dup /.loadfontresource get
  32. dup length array copy cvx
  33. dup 1 0 put
  34. dup 7 -1 put
  35. /.loadfontresource exch put
  36. /Font exch /Category defineresource pop
  37. % Some previously compile time options such as USE_ADOBE_CMYK_RGB
  38. % and GS_CHAR_FILL are now dynamic. Force CPSI compatibility.
  39. true .setCPSImode
  40. setglobal
  41. % Remove all but 'letter' page size
  42. <<
  43. currentpagedevice /InputAttributes get
  44. 1 1 2 index length 1 sub {
  45. 1 index exch undef
  46. } for
  47. /InputAttributes exch
  48. >>
  49. setpagedevice
  50. % Patch setsmoothness, currentsmoothness for a better view of shadings :
  51. userdict /.smoothness currentsmoothness put
  52. /setsmoothness {
  53. dup type dup /integertype eq exch /realtype eq or {
  54. userdict /.smoothness 3 2 roll cvr put
  55. } {
  56. /setsmoothness .systemvar /typecheck signalerror
  57. } ifelse
  58. } bind odef
  59. /currentsmoothness { userdict /.smoothness get } bind odef % for 09-55.PS, 09-57.PS .
  60. false 0 startjob pop % re-enter encapsulated mode