File Content Extraction 25.3
Filter SDK C Programming Guide

# fpGetDocInfoStream()

This function gets the following format information for a stream and populates the `ADDOCINFO` structure:

- Format
- File Class
- Major version
- Other attributes

The possible values are defined in `adinfo.h`.

DEPRECATED: The `fpGetDocInfoStream()` function is deprecated in KeyView 23.2.0 and later. OpenText recommends that you create a `KVDocument` to represent each document, and use fpGetDocInfo() instead.

This function is still available for existing implementations, but it might be incompatible with new functionality and might be removed in future.

## Syntax

    BOOL pascal fpGetDocInfoStream(
        KVFilterSession  session,
        KVInputStream   *pInput,
        ADDOCINFO       *pADDocInfo );

## Arguments

`session` | A Filter session that you initialized by calling fpInit().
`pInput` | A pointer to the input stream.
`pADDOCINFO` | The format, file class, and version of the source document. A pointer to the ADDOCINFO structure. The structure of `ADDOCINFO` is defined in `adinfo.h`.

## Returns

- If the format information is extracted, the return value for this function is `TRUE`.
- If the format information is not extracted, the return value is `FALSE`. You can find out what went wrong by calling fpGetKvErrorCodeEx().

Copyright 1997-2025 Open Text
Version 25.3 | Last updated July 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.3

Topic Title: fpGetDocInfoStream()