meaning, such as “flow control” or “marking the end of a file,” can cause file
transmission problems in certain communications environments. For exam-
ple, the control-D character is used as an end-of-file indicator in serial and
parallel communications channels. Because this character terminates the job
in serial and parallel environments, it is not prudent to produce an EPS file
with this character in it.
See Appendix D of the
PostScript Language Reference Manual, Second
Edition
for guidelines about how to take advantage of language extensions
and Level 2 features while maintaining compatibility with Level 1 PostScript
interpreters.
2.9
Miscellaneous Constraints
EPS files must not have lines of ASCII text that exceed 255 characters,
excluding line-termination characters.
Lines must be terminated with one of the following combinations of
characters: CR, LF, CR LF, or LF CR.
CR is the carriage return character and LF is the line feed character (decimal
ASCII 13 and 10, respectively).
3
Guidelines for Importing EPS Files
This section contains guidelines that should be followed when creating an
application that imports EPS files. The first part discusses displaying an EPS
file; the second covers producing the PostScript language code for the printer.
This section contains several PostScript language code fragments. A com-
plete code example that implements all of these segments is in section section
7.”
3.1
Displaying an EPS File
There are several techniques for including an EPS file in a document. The fol-
lowing scenario is typical:
1. When the user imports an EPS file, the application prompts the user to
select the EPS file to be imported.
2. The application opens the selected file and parses it for useful information.
If either of the two required header comments is missing, the application
should alert the user that the file is not a conforming EPS file and abort
the import.
3 Guidelines for Importing EPS Files
13