HtmlConvStreamToStream

This program converts an input stream to an output stream using Java API calls in HTML Export, and a template file. See Set Conversion Options by Using the Template Files for more information on template files.

Run HtmlConvStreamToStream on Windows

To run HtmlConvStreamToStream on Windows

  1. In the HtmlConvStreamToStream.bat file, set INSTALL_DIR to the Export installation directory.

  2. In the first line of the HtmlSampleConfig_nt.txt file, specify the path to the template file used in the conversion. You can use the template files in the install\htmlexport\programs\ini directory, where install is the path name of the Export installation directory.

  3. In the second line of the HtmlSampleConfig_nt.txt file, specify the path to the Export SDK\bin directory.

  4. Copy HtmlSampleConfig_nt.txt to HtmlSampleConfig.txt.

  5. Run the batch file in the install\javaapi\sample directory. Type the following:

    HtmlConvStreamToStream inputfile

    where:

    inputfile is 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

  1. In the HtmlConvStreamToStream.csh file, set MKENV to the platform on which you are running, either _hpux11, _ilnx21, _rs6k43, or _ssol26.

  2. In the HtmlConvStreamToStream.csh file, set INSTALL_DIR to the Export installation directory.

  3. In the first line of the HtmlSampleConfig_unix.txt file, specify the path to the template file used in the conversion. You can use the template files in the install/htmlexpt/programs/unix/ini directory, where install is the path name of the Export installation directory.

  4. In the second line of the HtmlSampleConfig_unix.txt file, specify the path to the ExportSDK/bin directory.

    NOTE: Note: If you have copied the HtmlSampleConfig_unix.txt and 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 function stripcr() (http://www.macromedia.com) to do this. This step is not required if the files are taken from the UNIX installation.
  5. Copy HtmlSampleConfig_unix.txt to HtmlSampleConfig.txt.

  6. Run the C shell file in the install/javaapi/sample directory. Type the following:

    ./HtmlConvStreamToStream.csh inputfile

    where:

    inputfile is the path and file name of the source file.

    The generated HTML is output to the current console (standard out).


_HP_HTML5_bannerTitle.htm