The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
<!doctype html public "-//W30//DTD W3 HTML 2.0//EN">

<HTML>

<!-- This file was generated using SDF 2.001 by
     Ian Clatworthy (ianc@mincom.com). SDF is freely
     available from http://www.mincom.com/mtr/sdf. -->

<HEAD>
<TITLE>SDF 2.001: SDF Reference: prn2ps - PostScript Conversion Utility</TITLE>
</HEAD>
<BODY BGCOLOR="ffffff">

<DIV CLASS="header">
<P><IMG SRC="../sdflogo.gif" ALIGN="Right"></P>
<DIV CLASS="navigate">
<P ALIGN="Center"><A HREF="re_sdf.html">Contents</A> | <A HREF="in_prog.html">Parent Topic</A> | <A HREF="sdngen.html">Previous Topic</A> | <A HREF="in_sub.html">Next Topic</A> <BR><A HREF="../index.html">Home</A> | <A HREF="../catalog.html">Catalog</A></P>
</DIV>
<BR CLEAR="Right">
</DIV>
<DIV CLASS="main">
<H1><A NAME="prn2ps">11.9. prn2ps - PostScript Conversion Utility</A></H1>
<HR>
<H2><A NAME="Purpose">Purpose</A></H2>
<P><CMD>prn2ps</CMD> converts Windows PostScript to Unix PostScript. The input to this program is typically generated by printing to a PostScript printer connected to the FILE: logical device. The output can be converted to Encapsulated PostScript using GhostScript's <CMD>p2epsi</CMD> program.</P>
<HR>
<H2><A NAME="Usage">Usage</A></H2>
<PRE>
usage  : prn2ps [-h[help]] [-o[out_ext]]
         [-l[log_ext]] [-O[out_dir]] prn_file ...
purpose: convert Windows PostScript to Unix PostScript
version: 2.000    (SDF 2.001)
</PRE>
<P>The options are:</P>
<TABLE CLASS="columns" BORDER>
<TR CLASS="heading">
<TD>
<STRONG>Option</STRONG>
</TD>
<TD>
<STRONG>Description</STRONG>
</TD>
</TR>
<TR>
<TD>
<A HREF="#prn2ps_h">-h</A>
</TD>
<TD>
display help on options
</TD>
</TR>
<TR>
<TD>
<A HREF="#prn2ps_o">-o</A>
</TD>
<TD>
output file extension
</TD>
</TR>
<TR>
<TD>
<A HREF="#prn2ps_l">-l</A>
</TD>
<TD>
log file extension
</TD>
</TR>
<TR>
<TD>
<A HREF="#prn2ps_O">-O</A>
</TD>
<TD>
output to input file's (or explicit) directory
</TD>
</TR>
</TABLE>

<HR>
<H2><A NAME="Description">Description</A></H2>
<P><A NAME="prn2ps_h">The -h option provides help. If it is specified without a parameter, a brief description of each option is displayed. To display the attributes for an option, specify the option letter as a parameter.</A></P>
<P><A NAME="prn2ps_o">By default, generated output goes to standard output. To direct output to a file per input file, use the -o option to specify an extension for output files. If the -o option is specified without a parameter, an extension of <EM>out</EM> is assumed.</A></P>
<P><A NAME="prn2ps_l">Likewise, error messages go to standard error by default. Use the -l option to create a log file per input file. If the -l option is specified without a parameter, an extension of <EM>log</EM> is assumed.</A></P>
<P><A NAME="prn2ps_O">By default, generated output and log files are created in the current directory. Use the -O option to specify an explicit output directory. If the -O option is specified without a parameter, the input file's directory is used.</A></P>
<P>For each input file, the output is generated by:</P>
<UL>
<LI>deleting the <EM>PageSize</EM> information
<LI>deleting the control-D at the end of the file.</UL>
<HR>
<H2><A NAME="Examples">Examples</A></H2>
<P>To generate an Encapsulated PostScript file from Windows PostScript:</P>
<PRE>
  prn2ps -ops myfig.prn
  ps2epsi myfig.ps
</PRE>
<HR>
<H2><A NAME="Limitations and future directions">Limitations and future directions</A></H2>
<P>If <CMD>ps2epsi</CMD> doesn't like the output, you may need to use another printer driver to generate the input. On Windows NT 4.0, the <EM>Canon PS-IPU Color Laser Copier v52.3</EM> driver works most of the time.</P>
</DIV>
<DIV CLASS="footer">
<DIV CLASS="navigate">
<P ALIGN="Center"><A HREF="re_sdf.html">Contents</A> | <A HREF="in_prog.html">Parent Topic</A> | <A HREF="sdngen.html">Previous Topic</A> | <A HREF="in_sub.html">Next Topic</A> <BR><A HREF="../index.html">Home</A> | <A HREF="../catalog.html">Catalog</A></P>
</DIV>
</DIV>

</BODY>
</HTML>