File Content Extraction 25.4
Filter SDK C Programming Guide

# fpExportHTMLToFile()

Creates a HTML representation of the input file and exports it to a file.

To use this function, you must copy the binaries provided in the `InstallDir/Platform/html` directory into the `bin` directory. By default, these binaries are omitted to reduce the size of the `bin` directory if you do not use this function.

## Syntax

    KVErrorCode(pascal* fpExportHTMLToFile)(
        KVDocument pDocument,
        const char* szOutputFile);

## Arguments

`pDocument` | A `KVDocument` that you created with fpOpenDocumentFromFile().
`szOutputFile` | A pointer to a string that contains the path of the output file. On Windows, the path must be encoded in the local Windows code page.

## Returns

- If the call is successful, the return value is `KVError_Success`.
- If the call is unsuccessful, the return value is an error code that indicates the problem.

## Discussion

- This method might create a number of auxiliary files (other HTML files, images, or subdirectories) in the same folder as the output file.

- To view the HTML results correctly, you must have javascript enabled.

- Unlike fpFilterToFile(), `fpExportHTMLToFile` operates recursively on containers and mail files. OpenText recommends that you run it on the top level file.

- The HTML output does not include all content that is present in the Filter output such as headers and footers.

- This feature is licensed differently to other functions.

Copyright 1997-2025 Open Text
Version 25.4 | Last updated October 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: File Content Extraction 25.4

Topic Title: fpExportHTMLToFile()