Extract Format Information

You can extract format information from a document by using the GetDocFormatInfo method. This method extracts the major format, file class, version, and document attributes, and populates the DocFormatInfo class. It returns the format information as a string. The format information that you can extract is listed in the header file adinfo.h.

For information about mapping detected formats to document readers, see Determine a Document Reader.