File Content Extraction 25.3
Filter SDK C Programming Guide

# fpGetDocInfo()

Gets the format information for a document, including the file format and file class.

## Syntax

    KVErrorCode (pascal* fpGetDocInfo)(
        KVDocument pDocument,
        ADDOCINFO* pDocInfo);

## Arguments

`pDocument` | A `KVDocument` that you created with fpOpenDocumentFromFile() or fpOpenDocumentFromStream().
`pDocInfo` | A pointer to an existing ADDOCINFO structure. On success, `fpGetDocInfo()` populates this structure with format information.

## Returns

The return value is an error code.

- If the call is successful, the return value is `KVError_Success` and the document information is set in `pDocInfo`.
- If the call is unsuccessful, the return value is an error code that indicates the problem.

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: fpGetDocInfo()