File Content Extraction 25.4
Filter SDK C Programming Guide

# fpCloseDocument()

Closes a `KVDocument` that was opened with fpOpenDocumentFromFile() or fpOpenDocumentFromStream(). Call this function when you no longer need the `KVDocument`, to free the memory that was allocated.

You must call this function on all open documents created by a Filter session, before calling fpShutdown() on the session.

## Syntax

    BOOL (pascal* fpCloseKVDocument)(KVDocument pDocument);

## Arguments

`pDocument` | A `KVDocument` that you created with fpOpenDocumentFromFile() or fpOpenDocumentFromStream().

## Returns

This functions returns `TRUE` on success or `FALSE` on failure.

## Lifetimes and Memory Management

- See fpOpenDocumentFromStream() and fpOpenDocumentFromFile().

Copyright 1997-2025 Open Text
Version 25.4 | Last updated October 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.4

Topic Title: fpCloseDocument()