Sanitize a file (COM)

Method

ConvertFileType

Description

This method converts the specified input file into a different format.

Function prototype

HRESULT ConvertFileType
{
[in] VARIANT ContentsToConvert,
[in] VARIANT ConvertTo,
[in] VARIANT TargetFolderPath,
[in] VARIANT * ReservedInArgsArray,
[out] VARIANT * ReservedOutArgsArray,
[out, retval] VARIANT * ConvertedFilePath
}

Arguments

Argument

Description

Data Type

ContentsToConvert

UNC of the input file to convert.

String

ConvertTo

Identifier for targeted conversion.

Usually file extension (e.g., pdf, docx…)

String

TargetFolderPath

UNC of the destination folder path. The converted file will be created in that folder.

String

ReservedInArgsArray

Reserved

 

ReservedOutArgsArray

Reserved

 

ConvertedFilePath

Path to the converted file if conversion was successful.

String