# Extract File Format Information

Export can detect a file's format, and report the information to the API, which in turn reports the information to the developer's application. This feature enables you to apply customized conversion settings based on a file's format. See File Format Detection for more information on format detection.

## Use the C API

To extract file format information by using the C API

1. Declare a pointer to the `KVStreamInfo` data structure. KVStreamInfo.

2. Call the `fpGetStreamInfo()` function. fpGetStreamInfo().

## Use the COM interface

To extract file format information by using the COM interface, call the `GetFileInfo()` method. See GetFileInfo.

_FT_HTML5_bannerTitle.htm