HtmlConvStreamToStream
This program converts an input stream to an output stream using Java API calls in HTML Export, and a template file. See Explore Conversion Options with the Sample Programs for more information on template files.
Run HtmlConvStreamToStream on Windows
To run HtmlConvStreamToStream on Windows
-
In the
HtmlConvStreamToStream.batfile, setINSTALL_DIRto the Export installation directory. -
In the first line of the
HtmlSampleConfig_nt.txtfile, specify the path to the template file used in the conversion. You can use the template files in theinstall\htmlexport\programs\inidirectory, whereinstallis the path name of the Export installation directory. -
In the second line of the
HtmlSampleConfig_nt.txtfile, specify the path to theExport SDK\bindirectory. -
Run the batch file in the
install\javaapi\sampledirectory. Type the following:HtmlConvStreamToStream
inputfilewhere:
inputfileis the path and file name of the source file.The generated HTML is output to the current DOS prompt.
Run HtmlConvStreamToStream on UNIX
To run HtmlConvStreamToStream on UNIX
-
In the
HtmlConvStreamToStream.cshfile, setMKENVto the platform on which you are running, either_hpux11,_ilnx21,_rs6k43, or_ssol26. -
In the
HtmlConvStreamToStream.cshfile, setINSTALL_DIRto the Export installation directory. -
In the first line of the
HtmlSampleConfig_unix.txtfile, specify the path to the template file used in the conversion. You can use the template files in theinstall/htmlexpt/programs/unix/inidirectory, whereinstallis the path name of the Export installation directory. -
In the second line of the
HtmlSampleConfig_unix.txtfile, specify the path to theExportSDK/bindirectory.NOTE: If you have copied the
HtmlSampleConfig_unix.txtand C shell file from a Windows system or edited the files on a Windows system, remove the carriage returns from these files. You can use a utility such as the ColdFusion functionstripcr()(http://www.macromedia.com) to do this. This step is not required if the files are taken from the UNIX installation. -
Copy
HtmlSampleConfig_unix.txttoHtmlSampleConfig.txt. -
Run the C shell file in the
install/javaapi/sampledirectory. Type the following:./HtmlConvStreamToStream.csh
inputfilewhere:
inputfileis the path and file name of the source file.The generated HTML is output to the current console (standard out).