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.