Xerox Phaser 340 User Guide

Page of 288
A
Modifying Printer Operations
A-20
Phaser 340 Drivers and Utilities
Adding Control-D characters to PC files
The ADDCTRLD.BAT and CTRLD.PS files are included for users who want 
to write their own PostScript files. Install the utility files with the installer 
application on either the Phaser 340 CD-ROM or the Printer Software for 
Windows diskette; refer to page 3-35 for instructions.  Then, locate the 
installed files in the PHSR340 subdirectory inside the PHSRTOOL directory 
on your hard disk.   
Note
If your computer is connected to the printer through the parallel 
port, or the optional serial port, you need to have Control-D 
characters in your utility files or in the files you create.  However, 
if your computer is connected to a network such as NetWare or 
TCP/IP, you should not add Control-D characters to a utility file.  
The non-text Control-D character is required at the end of PostScript files 
sent to the printer’s parallel port or optional serial port; it signals 
“end-of-job.”  A Control-D should precede and follow most PostScript data 
files.  ADDCTRLD.BAT and CTRLD.PS help you add two Control-D 
characters to your files.    
ADDCTRLD.BAT
ADDCTRLD.BAT is a batch file that adds a Control-D to the beginning and 
the end of a file.  Use this file if you are creating your own PostScript files.   
To use ADDCTRLD.BAT, copy ADDCTRLD.BAT and CTRLD.PS to the same  
directory on your hard disk. Type the following command:
ADDCTRLD filename
where filename is the name of the file that needs Control-D characters.  
CTRLD.PS
CTRLD.PS contains some PostScript comments plus the Control-D character.  
Copy CTRLD.PS to the beginning and/or end of your PostScript files before 
you send them to the printer.  (PostScript utility files on the Phaser 340 
CD-ROM and on the Printer Software for Windows diskette already have 
Control-D characters at the beginning and end.)  You can send CTRLD.PS to 
the printer by itself to make sure the printer is in the “end-of-job” condition.