File Content Extraction 26.3
Filter SDK C++ Programming Guide

# Export Files to HTML

The File Content Extraction Filter SDK allows you to extract text from many different file formats. File Content Extraction also supports conversion of many file formats into HTML so that documents can be viewed in a web browser. File Content Extraction has a dedicated HTML Export API, but if you are already using the Filter SDK you can access some functionality of HTML Export through the Filter API.

NOTE: There are several requirements that must be met in order to use HTML Export through the Filter API:

- Your license must enable HTML Export.
- You must copy the binaries provided in the `PLATFORM/html` directory of the SDK into the `PLATFORM/bin` directory. The SDK does not include these binaries in the `bin` directory, to avoid the increase in size for applications that do not require HTML Export.
- When viewing the exported HTML in a web browser, you must have JavaScript enabled.

To export a file to HTML

- In the C++ API, call the method export_html_to_file on your document object. For example:

  Copy

      1
      2
      3
      4
      5
      auto session = keyview::Session{license, bin_path };
      auto myinput = keyview::io::InputFile{ std::string("input.docx") };

      auto doc = session.open(myinput);
      doc.export_html_to_file("output.html");

Copyright 1997-2026 Open Text
Version 26.3 | Last updated July 2026

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 26.3

Topic Title: Export Files to HTML