blob: 653d9b543ac18db84515542eae7a707800f4ca1c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
|
/*
* Copyright 1999-2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* $Id$ */
package org.apache.fop.render.ps;
/**
* This class defines constants with Strings for the DSC specification.
*
* @author <a href="mailto:fop-dev@xml.apache.org">Apache XML FOP Development Team</a>
* @author <a href="mailto:jeremias@apache.org">Jeremias Maerki</a>
* @version $Id: DSCConstants.java,v 1.2 2003/03/07 09:46:30 jeremias Exp $
*/
public class DSCConstants {
// ----==== General Header Comments ====----
/** Lead-in for a DSC-conformant PostScript file */
public static final String PS_ADOBE_30 = "%!PS-Adobe-3.0";
/** Lead-in for an EPS file */
public static final String EPSF_30 = "EPSF-3.0";
/** Bounding box for the document */
public static final String BBOX = "BoundingBox";
/** High-resolution bounding box for the document */
public static final String HIRES_BBOX = "HiResBoundingBox";
/** Copyright information associated with the document or resource */
public static final String COPYRIGHT = "Copyright";
/** Creator of the document */
public static final String CREATOR = "Creator";
/** Date and time when the document was created */
public static final String CREATION_DATE = "CreationDate";
/** Type of data */
public static final String DOCUMENT_DATA = "BoundingBox";
/** Use for inidicating an emulator being invoked in the document */
public static final String EMULATION = "Emulation";
/** Explicit end of comments */
public static final String END_COMMENTS = "EndComments";
/** Required PostScript Level 1 extension for this document */
public static final String EXTENSIONS = "Extensions";
/** Indicates who is this document printed for */
public static final String FOR = "For";
/** Indicates the PostScript language level used in the document */
public static final String LANGUAGE_LEVEL = "LanguageLevel";
/** Indicates the orientation of the document */
public static final String ORIENTATION = "Orientation";
/** Number of pages in the document */
public static final String PAGES = "Pages";
/** Indicates the order of the pages */
public static final String PAGE_ORDER = "PageOrder";
/** Indicates how the document should be routed back to its owner */
public static final String ROUTING = "Routing";
/** Title of the document */
public static final String TITLE = "Title";
/** Version of the document */
public static final String VERSION = "Version";
// ----==== General Body Comments ====----
/** Indicates a continued line */
public static final String NEXT_LINE = "+ ";
//Skipping BeginBinary/EndBinary. They are deprecated.
/** Indicates the start of a data section*/
public static final String BEGIN_DATA = "BeginData";
/** Indicates the end of a data section*/
public static final String END_DATA = "EndData";
/** Indicates the start of the defaults section */
public static final String BEGIN_DEFAULTS = "BeginDefaults";
/** Indicates the end of the defaults section */
public static final String END_DEFAULTS = "EndDefaults";
/** Indicates the start of a non-PostScript section */
public static final String BEGIN_EMULATION = "BeginEmulation";
/** Indicates the end of a non-PostScript section */
public static final String END_EMULATION = "EndEmulation";
/** Indicates the start of a preview section (EPS only)*/
public static final String BEGIN_PREVIEW = "BeginPreview";
/** Indicates the end of a preview section (EPS only)*/
public static final String END_PREVIEW = "EndPreview";
/** Indicates the start of the prolog */
public static final String BEGIN_PROLOG = "BeginProlog";
/** Indicates the end of the prolog */
public static final String END_PROLOG = "EndProlog";
/** Indicates the start of the document setup */
public static final String BEGIN_SETUP = "BeginSetup";
/** Indicates the end of the document setup */
public static final String END_SETUP = "EndSetup";
// ----==== General Page Comments ====----
/** Indicates the start of a graphic object */
public static final String BEGIN_OBJECT = "BeginObject";
/** Indicates the end of a graphic object */
public static final String END_OBJECT = "EndObject";
/** Indicates the start of the page setup section */
public static final String BEGIN_PAGE_SETUP = "BeginPageSetup";
/** Indicates the end of the page setup section */
public static final String END_PAGE_SETUP = "EndPageSetup";
/** Indicates a page number */
public static final String PAGE = "Page";
/** Bounding box for a page */
public static final String PAGE_BBOX = "PageBoundingBox";
/** High-resolution bounding box for a page */
public static final String PAGE_HIRES_BBOX = "PageHiResBoundingBox";
/** Bounding box for a page */
public static final String PAGE_ORIENTATION = "PageOrientation";
// ----==== General Trailer Comments ====----
/** Indicates the start of the page trailer */
public static final String PAGE_TRAILER = "PageTrailer";
/** Indicates the start of the document trailer */
public static final String TRAILER = "Trailer";
/** Indicates the end of a page (NON-STANDARD!) */
public static final String END_PAGE = "EndPage";
/** Indicates the end of the document */
public static final String EOF = "EOF";
// ----==== Requirements Conventions ====----
/**@todo Add the missing comments */
// ----==== Requirement Body Comments ====----
/** Indicates the start of an embedded document */
public static final String BEGIN_DOCUMENT = "BeginDocument";
/** Indicates the end of an embedded document */
public static final String END_DOCUMENT = "EndDocument";
/** Indicates a referenced embedded document */
public static final String INCLUDE_DOCUMENT = "IncludeDocument";
/** Indicates the start of a PPD feature */
public static final String BEGIN_FEATURE = "BeginFeature";
/** Indicates the end of a PPD feature */
public static final String END_FEATURE = "EndFeature";
/** Indicates a referenced a PPD feature */
public static final String INCLUDE_FEATURE = "IncludeFeature";
//Skipping BeginFile/EndFile/IncludeFile. They are deprecated.
//Skipping BeginFont/EndFont/IncludeFont. They are deprecated.
//Skipping BeginProcSet/EndProcSet/IncludeProcSet. They are deprecated.
/** Indicates the start of a resource (font, file, procset) */
public static final String BEGIN_RESOURCE = "BeginResource";
/** Indicates the end of a resource (font, file, procset) */
public static final String END_RESOURCE = "EndResource";
/** Indicates a referenced a resource (font, file, procset) */
public static final String INCLUDE_RESOURCE = "IncludeResource";
}
|