<!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 User Guide: Generating outputs</TITLE>
<STYLE TYPE="text/css">
<!--
.changed {background-color: teal}
.changed {background-color: teal}
.changed {background-color: teal}
.changed {background-color: teal}
.changed {background-color: teal}
.changed {background-color: teal}
-->
</STYLE>
</HEAD>
<BODY BGCOLOR="ffffff">
<DIV CLASS="header">
<P><IMG SRC="../sdflogo.gif" ALIGN="Right"></P>
<DIV CLASS="navigate">
<P ALIGN="Center"><A HREF="ug_sdf.html">Contents</A> | <A HREF="in_start.html">Parent Topic</A> | <A HREF="in_gsex.html">Previous Topic</A> | <A HREF="in_style.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>1.4. Generating outputs</H1>
<HR>
<H2><A NAME="Overview">1.4.1. Overview</A></H2>
<P>The <A HREF="../ref/sdf.html">sdf</A> command is used to convert SDF to other formats. The general syntax is:</P>
<PRE>
sdf [options] file ...
</PRE>
<P>If an extension is not given (and a file is not found with that name), an extension of <EM>sdf</EM> is assumed.</P>
<HR>
<H2><A NAME="Generating HTML">1.4.2. Generating HTML</A></H2>
<P>To convert <TT>mydoc.sdf</TT> to HTML, the command is:</P>
<PRE>
sdf -2html mydoc
</PRE>
<P>This creates a file called <TT>mydoc.html</TT>.</P>
<HR>
<H2><A NAME="Generating a set of HTML topics">1.4.3. Generating a set of HTML topics</A></H2>
<P>To convert <TT>mydoc.sdf</TT> to a set of HTML topics, the command is:</P>
<PRE>
sdf -2topics mydoc
</PRE>
<P>This creates the following files:</P>
<UL>
<LI><EM>mydoc.html</EM> - the table of contents
<LI><EM>mydoc_1.html</EM> - the first topic
<LI><EM>mydoc_2.html</EM> - the second topic.</UL>
<HR>
<H2><A NAME="Generating PostScript on Unix">1.4.4. Generating PostScript on Unix</A></H2>
<P>To convert <TT>mydoc.sdf</TT> to PostScript on Unix, the command is:</P>
<PRE>
sdf -2ps mydoc
</PRE>
<P>This creates a file called <TT>mydoc.ps</TT> by:</P>
<OL>
<LI>Generating a MIF (Maker Interchange Format) file called <EM>mydoc.out</EM>.
<LI>Using the <EM>fmbatch</EM> program to convert this file to <EM>mydoc.out.ps</EM>.
<LI>Renaming <EM>mydoc.out.ps</EM> to <EM>mydoc.ps</EM>.
<LI>Deleting <EM>mydoc.out</EM>.</OL>
<HR>
<H2><A NAME="Generating PostScript on Windows">1.4.5. Generating PostScript on Windows</A></H2>
<P>To convert <TT>mydoc.sdf</TT> to PostScript on Windows, the command is:</P>
<PRE>
sdf -2mif mydoc
</PRE>
<P>This creates a file called <TT>mydoc.mif</TT> which can be opened in FrameMaker and printed to a PostScript file.</P>
<HR>
<H2><A NAME="Generating PDF">1.4.6. Generating PDF</A></H2>
<P>To generate a PDF file, the steps are:</P>
<OL>
<LI>Generate a PostScript document (see above)
<LI>Open the PostScript document using <EM>Adobe Distiller</EM>.
<LI>Generate the PDF file.</OL>
<P><HR WIDTH="80%" ALIGN="Left">
<STRONG>Note: </STRONG>The PostScript document generated by SDF includes the information needed by the PDF distiller to generate a table of contents.
<HR WIDTH="80%" ALIGN="Left"></P>
<HR>
<H2><A NAME="Generating plain text">1.4.7. Generating plain text</A></H2>
<P>To convert <TT>mydoc.sdf</TT> to plain text, the command is:</P>
<PRE>
sdf -2txt mydoc
</PRE>
<P>This creates a file called <TT>mydoc.txt</TT>.</P>
<HR>
<H2><A NAME="Generating Windows help">1.4.8. Generating Windows help</A></H2>
<P>To convert <TT>mydoc.sdf</TT> to Windows help, the command is:</P>
<PRE>
sdf -2hlp mydoc
</PRE>
<P>This creates the following files:</P>
<UL>
<LI><EM>mydoc.hpj</EM> - a help project file
<LI><EM>mydoc.rtf</EM> - an RTF document with embedded help codes</UL>
<P>These need to be compiled using a help compiler (e.g. hcp.exe). For example:</P>
<PRE>
hcp mydoc
</PRE>
<P>This creates a file called <EM>mydoc.hlp</EM> (provided no errors are encountered).</P>
</DIV>
<DIV CLASS="footer">
<DIV CLASS="navigate">
<P ALIGN="Center"><A HREF="ug_sdf.html">Contents</A> | <A HREF="in_start.html">Parent Topic</A> | <A HREF="in_gsex.html">Previous Topic</A> | <A HREF="in_style.html">Next Topic</A> <BR><A HREF="../index.html">Home</A> | <A HREF="../catalog.html">Catalog</A></P>
</DIV>
</DIV>
</BODY>
</HTML>