fpGetFileInfo()
This function returns information about a file such as its format and character set.
Syntax
KVPDFState pascal fpGetFileInfo(
const KVPDFContext context,
const char* const pszInFileName,
KVDocInfo* const pDocInfo);
Arguments
|
|
A context value obtained by using fpInit(). |
|
|
A null-terminated C string that contains the path of the file to retrieve information about. |
pDocInfo
|
A pointer to a KVDocInfo structure to write the file information to. |
Returns
- If the call is successful, a
KVPDFStatestructure witheErrorCodeset toKVERR_Success. - If the call is unsuccessful, a
KVPDFStatestructure that indicates the reason for the error.
Discussion
- On Windows systems, specify the paths in the local Windows code page.
- You must not initialize the
KVDocInfostructure by using theKVStructInit()macro. - If the call is unsuccessful and returns an error state, the memory that
pDocInfopoints to has not been modified. -
On Windows,
pszInFileNamemust be in the local Windows code page.