HtmlConvFileToFile

This program converts an input file to an output file 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. The program is available in C# (HtmlConvFileToFile.cs) for .NET and Java (HtmlConvFileToFile.java).

This program demonstrates the following functions:

Run HtmlConvFileToFile on Windows

To run HtmlConvFileToFile on Windows

  1. In the file HtmlConvFileToFile.bat, set the following variables.

    INSTALL_DIR The absolute path of the KeyView Export SDK installation directory.
    PLATFORM The platform name.
  2. In HtmlSampleConfig.txt, specify the following values, one on each line.

    Line Value
    1

    The path to the template file to use in the conversion.

    You can use the template files in the directory install\htmlexport\programs\ini, where install is the Export SDK installation directory.

    2 The path to the Export SDK bin directory.
    3 (Optional) If you are processing XML files you can specify the location of the kvxconfig.ini file that contains extraction settings. This is in the bin directory.
  3. Run the program. For the Java version of the program, run the batch file in the install\javaapi\sample directory. Type the following:

    HtmlConvFileToFile inputfile outputfile

    For the .NET version of the program, compile the program in Visual Studio and run the program from the Export bin directory:

    HtmlConvFileToFile.exe inputfile outputfile

    where:

    inputfile is the path of the source file.

    outputfile is the path and file name of the generated HTML file.

Run HtmlConvFileToFile on UNIX

To run HtmlConvFileToFile on UNIX

  1. In the file HtmlConvFileToFile.csh, set the following variables.

    INSTALL_DIR The absolute path of the KeyView Export SDK installation directory.
    PLATFORM The platform name.
  2. In HtmlSampleConfig.txt, specify the following values, one on each line.

    Line Value
    1

    The path to the template file to use in the conversion.

    You can use the template files in the directory install\htmlexport\programs\ini, where install is the Export SDK installation directory.

    2 The path to the Export SDK bin directory.
    3 (Optional) If you are processing XML files you can specify the location of the kvxconfig.ini file that contains extraction settings. This is in the bin directory.
  3. Run the program:

    ./HtmlConvFileToFile.csh inputfile outputfile

    where:

    inputfile is the path of the source file.

    outputfile is the path and file name of the generated HTML file.