KeyView 23.3

# 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 2016-2023 Open Text
Version 23.3 | Last updated June 2023

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 swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL KeyView 23.3

Topic Title: fpFilterToFile()