File Content Extraction 25.4
Filter SDK C Programming Guide

# fpFilterToFile()

Filters text from a document and outputs the text to a file.

## Syntax

    KVErrorCode (pascal* fpFilterToFile)(
        KVDocument pDocument,
        const char* szOutputFile);

## Arguments

`pDocument` | A `KVDocument` that you created with fpOpenDocumentFromFile() or fpOpenDocumentFromStream().
`szOutputFile` | A pointer to a string that contains the path of the output file. On Windows, the path must be encoded in the local Windows code page.

## Returns

The return value is an error code.

- If the call is successful, the return value is `KVError_Success` and the plain text content of the document is output to the file you specified.
- If the call is unsuccessful, the return value is an error code that indicates the problem.

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