File Content Extraction 26.1
Filter SDK Python 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 Python API, call the method `export_html_to_file` on your document object. For example:

  Copy

      1
      2
      3
      4
      5
      import keyview.filter as kv

      with kv.FilterSession(bin_path, license) as session:
          with session.open("input.docx") as doc:
              doc.export_html_to_file("output.html")

Copyright 1997-2025 Open Text
Version 26.1 | Last updated January 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.1

Topic Title: Export Files to HTML