fpCreateThumbnailForFile()

This functions converts a source file to an output PNG thumbnail file.

Syntax

KVPDFState pascal fpCreateThumbnailForFile(
   const KVPDFContext context,
   const char* const pszInFileName,
   const char* const pszOutFileName,
   const unsigned int widthPixels,
   const unsigned int heightPixels,
   const KVPDFThumbnailOptions options)

Arguments

Context

A context value obtained by using fpInit().

pszInFileName

A null-terminated C string that contains the path of the file to export to PNG.

pszOutFileName A null-terminated C string that contains the full file path where the export process must create the PNG. This value cannot be the current working directory.
widthPixels The width of the output bounding box in pixels.
heightPixels The height of the output bounding box in pixels.
options A KVPDFThumbnailOptions structure. Initialize a KVPDFThumbnailOptions structure with the KVStructInit() macro, and then modify the structure as necessary.

Returns

Discussion