KeyView 24.3

# Obtain Format Information

The KeyView format detection module (`kwad`) detects a file's format, and reports the information to your application.

You can obtain format information by calling the `Info()` method of a `Document` object.

Copy

    using (Document myDoc = session.Open(inputFilePath))
    {
        Console.WriteLine("File class: " + myDoc.Info().DocClassName());
        Console.WriteLine("File format: " + myDoc.Info().DocFormat().ToString());
        Console.WriteLine("Description: " + myDoc.Info().Description());
        Console.WriteLine("File version: " + myDoc.Info().Version().ToString());
    }

For information about mapping detected formats to document readers, see File Formats and Document Readers.

Copyright 1997-2024 Open Text
Version 24.3 | Last updated June 2024

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: IDOL KeyView 24.3

Topic Title: Obtain Format Information