Search tips

Filter SDK .NET Programming Guide

Filter:

Submit Search

After setting up your chosen File Content Extraction SDK, you can start a new session and filter text in just a few lines of code, as demonstrated by the following code snippets. To get started with our APIs, and explore other features including format detection, subfile extraction, and access to metadata, see Getting Started.

Copy

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    KVFltInterfaceEx filter;

    KVErrorCode error = KV_GetFilterInterfaceEx(&filter, KVFLTINTERFACE_REVISION);
    if(error == KVError_Success)
    {
        KVFilterSession session = NULL;
        KVFilterInitOptions options;
        KVStructInit(&options);
        error = filter.fpInit("/path/to/keyview/bin", license, &options, &session);
        if(error == KVError_Success)
        {
            KVDocument document = NULL;
            error = filter.fpOpenDocumentFromFile(session, "InputFile.docx", &document);
            if(error == KVError_Success)
            {
                filter.fpFilterToFile(document, "OutputFile.txt");
            }
            filter.fpCloseDocument(document);
        }
        filter.fpShutdown(session);
    }

Copy

    1
    2
    3
    4
    5
    6
    7
    auto session = keyview::Session{license, "/path/to/keyview/bin"};

    auto myinput = keyview::io::InputFile{ std::string("InputFile.docx") };
    auto myoutput = keyview::io::OutputFile{ std::string("OutputFile.txt") };

    auto doc = session.open(myinput);
    doc.filter(myoutput);

Copy

    1
    2
    3
    4
    5
    6
    7
    using (Session session = new Session("/path/to/keyview/bin", license))
    {
        using (Document myDoc = session.Open("InputFile.docx"))
        {
            myDoc.Filter("OutputFile.txt");
        }
    }

Copy

    1
    2
    3
    4
    Filter objFilter = new Filter(license, Filter.CHARSET_UTF8, 0);
    objFilter.setFilterDirectory("/path/to/keyview/bin");
    objFilter.setInputSource("InputFile.docx");
    objFilter.filterTo("OutputFile.txt");

Copy

    1
    2
    3
    4
    5
    import keyview.filter as kv

    with kv.FilterSession("/path/to/keyview/bin", license) as session:
        with session.open("InputFile.docx") as doc:
            doc.filter("OutputFile.txt")

Copyright 1997-2025 Open Text
Version 26.1 | Last updated January 2026

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 26.1

Topic Title: Filter SDK .NET Programming Guide