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