Determine a Document Reader

The format detection module uses information in the file formats.ini to determine whether a format is supported, and to determine the reader to use to parse a format. The entries in the [Formats] section of formats.ini match file formats with readers.

Each file format has the following structure, where the parts following MajorFormat are optional:

MajorFormat.FileClass.MinorFormat.MajorVersion.MinorVersion

The reader to use for parsing each format is specified as an abbreviation of the reader's library name. Adding "sr" to the end of an abbreviation creates the name of the reader.

The following example specifies that an Adobe PDF file (format 230) is parsed by the Adobe PDF reader, pdfsr:

230=pdf

NOTE: The formats.ini file applies to all formats except graphics. Detection of graphics formats is handled by an internal module named KeyView Picture Interchange Format (KPIF).

List of Required Files for Redistribution lists the readers provided with KeyView.