Symptoms:
Symptoms:
SYMPTOMS: If you see a file that begins like this, beware:
%!PS-Adobe-3.0^M%%Title: (Untitled2)^M%%Creator: (Microsoft Word: LaserWriter 8 8.1.1)^M%%CreationDate: (3:04 PM Tuesday, March 7, 1995)^M%%For: (Jeanne Behnke) ^M%%Pages: 3 6^M%%DocumentFonts: Helvetica-Bold Helvetica Helvetica-Oblique Time s-Roman Times-BoldThe "%!PS-Adobe" indicates that the document is PostScript, and the "Creater: (Microsoft Word..." tells us that it was generated by such.
SOLUTIONS:
Since Unix systems and MS-DOS PC's use different formatting techniques, the file must be converted for use on a Unix system. To do so, try the following command:
[145]jess@sol:/u/jess/bin% dos2unix dosfilename unixfilenamewhere dosfilename is the current name of the file, and unixfilename is what you'd like the converted file to be named.
If you simply need to print the file, you can pipe it the printer, as here:
[160]jess@sol:/u/jess/bin% dos2unix dosfilename | lprwithout in any way changing the actual contents of the file.
SYMPTOMS: Postscript files generally have a .ps extension, although not always. Even more common is that somewhere in the first few lines will be the word PostScript. Another way to check is by using the file command, which tells you (although not infallibly) what type of file you are examining:
[434]jess@sol:/u/jess% file talk.ps talk.ps: PostScript document [435]jess@sol:/u/jess%If it tells you it's a PostScript document, however, it probably is.
SOLUTIONS: Most printers need to be warned that they are printing a postscipt file, or you will run into trouble. To do this, simply utilize the -s flag with lpr:
[435]jess@sol:/u/jess% lpr -s talk.psThere are also commands created especially for printing PostScript files, such as enscript, which converts a normal text file to PostScript, and pslpr, which prints PostScript documents. They have many features, which can be best understood by reading the manpages.
If you do not follow these guidelines when printing a PostScript file, the printer is likely to hang. Please remove the file from the queue immediately.
Could be an Encapsulated Postscript File
DESCRIPTION: Postscript files which contain pictures or images are usually written
with EPS, or Encapsulated PostScript. Often these files do not include
the necessary showpage command in them, which instructs PostScript
to actually print the page it has created.
SYMPTOMS:
SOLUTIONS:
ppanel provides a feature called add showpage, which enables one to input a showpage in the specified document. This will only work, however, one single page documents.
NICS