1 /* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or http://www.opensolaris.org/os/licensing. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22 /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 23 /* All Rights Reserved */ 24 25 26 #ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.1 */ 27 28 /* 29 * 30 * Currently defined file structuring comments from Adobe - plus a few others. 31 * Ones that end with a colon expect arguments, while those ending with a newline 32 * stand on their own. Truly overkill on Adobe's part and mine for including them 33 * all! 34 * 35 * All PostScript files should begin with a header that starts with one of the 36 * following comments. 37 * 38 */ 39 40 #define NONCONFORMING "%!PS\n" 41 #define MINCONFORMING "%!PS-Adobe-\n" 42 #define OLDCONFORMING "%!PS-Adobe-1.0\n" 43 44 #define CONFORMING "%!PS-Adobe-2.0\n" 45 #define CONFORMINGEPS "%!PS-Adobe-2.0 EPS\n" 46 #define CONFORMINGQUERY "%!PS-Adobe-2.0 Query\n" 47 #define CONFORMINGEXITSERVER "%!PS-Adobe-2.0 ExitServer\n" 48 49 /* 50 * 51 * Header comments - immediately follow the appropriate document classification 52 * comment. 53 * 54 */ 55 56 #define TITLE "%%Title:" 57 #define CREATOR "%%Creator:" 58 #define CREATIONDATE "%%CreationDate:" 59 #define FOR "%%For:" 60 #define ROUTING "%%Routing:" 61 #define BOUNDINGBOX "%%BoundingBox:" 62 #define PAGES "%%Pages:" 63 #define REQUIREMENTS "%%Requirements:" 64 65 #define DOCUMENTFONTS "%%DocumentFonts:" 66 #define DOCUMENTNEEDEDFONTS "%%DocumentNeededFonts:" 67 #define DOCUMENTSUPPLIEDFONTS "%%DocumentSuppliedFonts:" 68 #define DOCUMENTNEEDEDPROCSETS "%%DocumentNeededProcSets:" 69 #define DOCUMENTSUPPLIEDPROCSETS "%%DocumentSuppliedProcSets:" 70 #define DOCUMENTNEEDEDFILES "%%DocumentNeededFiles:" 71 #define DOCUMENTSUPPLIEDFILES "%%DocumentSuppliedFiles:" 72 #define DOCUMENTPAPERSIZES "%%DocumentPaperSizes:" 73 #define DOCUMENTPAPERFORMS "%%DocumentPaperForms:" 74 #define DOCUMENTPAPERCOLORS "%%DocumentPaperColors:" 75 #define DOCUMENTPAPERWEIGHTS "%%DocumentPaperWeights:" 76 #define DOCUMENTPRINTERREQUIRED "%%DocumentPrinterREquired:" 77 #define ENDCOMMENTS "%%EndComments\n" 78 #define ENDPROLOG "%%EndProlog\n" 79 80 /* 81 * 82 * Body comments - can appear anywhere in a document. 83 * 84 */ 85 86 #define BEGINSETUP "%%BeginSetup\n" 87 #define ENDSETUP "%%EndSetup\n" 88 #define BEGINDOCUMENT "%%BeginDocument:" 89 #define ENDDOCUMENT "%%EndDocument\n" 90 #define BEGINFILE "%%BeginFile:" 91 #define ENDFILE "%%EndFile\n" 92 #define BEGINPROCSET "%%BeginProcSet:" 93 #define ENDPROCSET "%%EndProcSet\n" 94 #define BEGINBINARY "%%BeginBinary:" 95 #define ENDBINARY "%%EndBinary\n" 96 #define BEGINPAPERSIZE "%%BeginePaperSize:" 97 #define ENDPAPERSIZE "%%EndPaperSize\n" 98 #define BEGINFEATURE "%%BeginFeature:" 99 #define ENDFEATURE "%%EndFeature\n" 100 #define BEGINEXITSERVER "%%BeginExitServer:" 101 #define ENDEXITSERVER "%%EndExitServer\n" 102 #define TRAILER "%%Trailer\n" 103 104 /* 105 * 106 * Page level comments - usually will occur once per page. 107 * 108 */ 109 110 #define PAGE "%%Page:" 111 #define PAGEFONTS "%%PageFonts:" 112 #define PAGEFILES "%%PageFiles:" 113 #define PAGEBOUNDINGBOX "%%PageBoundingBox:" 114 #define BEGINPAGESETUP "%%BeginPageSetup\n" 115 #define BEGINOBJECT "%%BeginObject:" 116 #define ENDOBJECT "%%EndObject\n" 117 118 /* 119 * 120 * Resource requirements - again can appear anywhere in a document. 121 * 122 */ 123 124 #define INCLUDEFONT "%%IncludeFont:" 125 #define INCLUDEPROCSET "%%IncludeProcSet:" 126 #define INCLUDEFILE "%%IncludeFile:" 127 #define EXECUTEFILE "%%ExecuteFile:" 128 #define CHANGEFONT "%%ChangeFont:" 129 #define PAPERFORM "%%PaparForm:" 130 #define PAPERCOLOR "%%PaperColor:" 131 #define PAPERWEIGHT "%%PaperWeight:" 132 #define PAPERSIZE "%%PaperSize:" 133 #define FEATURE "%%Feature:" 134 #define ENDOFFILE "%%EOF\n" 135 136 #define CONTINUECOMMENT "%%+" 137 #define ATEND "(atend)" 138 139 /* 140 * 141 * Some non-standard document comments. Global definitions are occasionally used 142 * in dpost and are marked by BEGINGLOBAL and ENDGLOBAL. The resulting document 143 * violates page independence, but can easily be converted to a conforming file 144 * using a utililty program. 145 * 146 */ 147 148 #define BEGINSCRIPT "%%BeginScript\n" 149 #define BEGINGLOBAL "%%BeginGlobal\n" 150 #define ENDGLOBAL "%%EndGlobal\n" 151 #define ENDPAGE "%%EndPage:" 152 #define FORMSPERPAGE "%%FormsPerPage:" 153 #define VERSION "%%Version:" 154 155