# filter_document

Filtering is the extraction of text from a document. This sample program makes use of the filter API method.

The program takes two positional arguments:

- an input file
- an output text file

By default, the ouput is encoded in UTF-8.

    $ ./filter_document input_file output.txt

CAUTION: Not all document formats can be filtered. For example, trying to filter a PNG file produces an error message. For some file formats (notably emails), Keyview treats the text as an embedded subfile that you should access by using the extraction API, not the filter API.

© Copyright 2016-2020 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm