fpGetDocInfo()

Gets the format information for a document, including the file format and file class.

Syntax

KVErrorCode (pascal* fpGetDocInfo)(
    KVDocument pDocument,
    ADDOCINFO* pDocInfo);

Arguments

pDocument

A KVDocument that you created with fpOpenDocumentFromFile() or fpOpenDocumentFromStream().

pDocInfo A pointer to an ADDOCINFO structure that you want to populate with format information.

Returns

The return value is an error code.

  • If the call is successful, the return value is KVError_Success and the document information is set in pDocInfo.
  • If the call is unsuccessful, the return value is an error code that indicates the problem.