comments.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /*
  2. *
  3. * Currently defined file structuring comments from Adobe - plus a few others.
  4. * Ones that end with a colon expect arguments, while those ending with a newline
  5. * stand on their own. Truly overkill on Adobe's part and mine for including them
  6. * all!
  7. *
  8. * All PostScript files should begin with a header that starts with one of the
  9. * following comments.
  10. *
  11. */
  12. #define NONCONFORMING "%!PS\n"
  13. #define MINCONFORMING "%!PS-Adobe-\n"
  14. #define OLDCONFORMING "%!PS-Adobe-1.0\n"
  15. #define CONFORMING "%!PS-Adobe-2.0\n"
  16. #define CONFORMINGEPS "%!PS-Adobe-2.0 EPS\n"
  17. #define CONFORMINGQUERY "%!PS-Adobe-2.0 Query\n"
  18. #define CONFORMINGEXITSERVER "%!PS-Adobe-2.0 ExitServer\n"
  19. /*
  20. *
  21. * Header comments - immediately follow the appropriate document classification
  22. * comment.
  23. *
  24. */
  25. #define TITLE "%%Title:"
  26. #define CREATOR "%%Creator:"
  27. #define CREATIONDATE "%%CreationDate:"
  28. #define FOR "%%For:"
  29. #define ROUTING "%%Routing:"
  30. #define BOUNDINGBOX "%%BoundingBox:"
  31. #define PAGES "%%Pages:"
  32. #define REQUIREMENTS "%%Requirements:"
  33. #define DOCUMENTFONTS "%%DocumentFonts:"
  34. #define DOCUMENTNEEDEDFONTS "%%DocumentNeededFonts:"
  35. #define DOCUMENTSUPPLIEDFONTS "%%DocumentSuppliedFonts:"
  36. #define DOCUMENTNEEDEDPROCSETS "%%DocumentNeededProcSets:"
  37. #define DOCUMENTSUPPLIEDPROCSETS "%%DocumentSuppliedProcSets:"
  38. #define DOCUMENTNEEDEDFILES "%%DocumentNeededFiles:"
  39. #define DOCUMENTSUPPLIEDFILES "%%DocumentSuppliedFiles:"
  40. #define DOCUMENTPAPERSIZES "%%DocumentPaperSizes:"
  41. #define DOCUMENTPAPERFORMS "%%DocumentPaperForms:"
  42. #define DOCUMENTPAPERCOLORS "%%DocumentPaperColors:"
  43. #define DOCUMENTPAPERWEIGHTS "%%DocumentPaperWeights:"
  44. #define DOCUMENTPRINTERREQUIRED "%%DocumentPrinterREquired:"
  45. #define ENDCOMMENTS "%%EndComments\n"
  46. #define ENDPROLOG "%%EndProlog\n"
  47. /*
  48. *
  49. * Body comments - can appear anywhere in a document.
  50. *
  51. */
  52. #define BEGINSETUP "%%BeginSetup\n"
  53. #define ENDSETUP "%%EndSetup\n"
  54. #define BEGINDOCUMENT "%%BeginDocument:"
  55. #define ENDDOCUMENT "%%EndDocument\n"
  56. #define BEGINFILE "%%BeginFile:"
  57. #define ENDFILE "%%EndFile\n"
  58. #define BEGINPROCSET "%%BeginProcSet:"
  59. #define ENDPROCSET "%%EndProcSet\n"
  60. #define BEGINBINARY "%%BeginBinary:"
  61. #define ENDBINARY "%%EndBinary\n"
  62. #define BEGINPAPERSIZE "%%BeginePaperSize:"
  63. #define ENDPAPERSIZE "%%EndPaperSize\n"
  64. #define BEGINFEATURE "%%BeginFeature:"
  65. #define ENDFEATURE "%%EndFeature\n"
  66. #define BEGINEXITSERVER "%%BeginExitServer:"
  67. #define ENDEXITSERVER "%%EndExitServer\n"
  68. #define TRAILER "%%Trailer\n"
  69. /*
  70. *
  71. * Page level comments - usually will occur once per page.
  72. *
  73. */
  74. #define PAGE "%%Page:"
  75. #define PAGEFONTS "%%PageFonts:"
  76. #define PAGEFILES "%%PageFiles:"
  77. #define PAGEBOUNDINGBOX "%%PageBoundingBox:"
  78. #define BEGINPAGESETUP "%%BeginPageSetup\n"
  79. #define BEGINOBJECT "%%BeginObject:"
  80. #define ENDOBJECT "%%EndObject\n"
  81. /*
  82. *
  83. * Resource requirements - again can appear anywhere in a document.
  84. *
  85. */
  86. #define INCLUDEFONT "%%IncludeFont:"
  87. #define INCLUDEPROCSET "%%IncludeProcSet:"
  88. #define INCLUDEFILE "%%IncludeFile:"
  89. #define EXECUTEFILE "%%ExecuteFile:"
  90. #define CHANGEFONT "%%ChangeFont:"
  91. #define PAPERFORM "%%PaparForm:"
  92. #define PAPERCOLOR "%%PaperColor:"
  93. #define PAPERWEIGHT "%%PaperWeight:"
  94. #define PAPERSIZE "%%PaperSize:"
  95. #define FEATURE "%%Feature:"
  96. #define ENDOFFILE "%%EOF\n"
  97. #define CONTINUECOMMENT "%%+"
  98. #define ATEND "(atend)"
  99. /*
  100. *
  101. * Some non-standard document comments. Global definitions are occasionally used
  102. * in dpost and are marked by BEGINGLOBAL and ENDGLOBAL. The resulting document
  103. * violates page independence, but can easily be converted to a conforming file
  104. * using a utililty program.
  105. *
  106. */
  107. #define BEGINSCRIPT "%%BeginScript\n"
  108. #define BEGINGLOBAL "%%BeginGlobal\n"
  109. #define ENDGLOBAL "%%EndGlobal\n"
  110. #define ENDPAGE "%%EndPage:"
  111. #define FORMSPERPAGE "%%FormsPerPage:"
  112. #define VERSION "%%Version:"