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.