Convert

Converter<TLoadOptions,TConvertOptions>.Convert method (1 of 2)

Converts the source file to the target format and saves it to the specified stream.

public void Convert(Stream targetStream, Action<TConvertOptions> convertOptionsAction = null)
parameterdescription
targetStreamThe stream where the converted document will be written
convertOptionsActionOptional delegate to configure conversion options specific to the target format. The delegate receives an instance of TConvertOptions allowing you to customize the conversion process.

Exceptions

exceptioncondition
InvalidOperationExceptionThrown when the target format doesn’t match the expected format or licensing issues occur

See Also


Converter<TLoadOptions,TConvertOptions>.Convert method (2 of 2)

Converts the source file to the target format and saves it to the specified file path.

public void Convert(string filePath, Action<TConvertOptions> convertOptionsAction = null)
parameterdescription
filePathThe file path where the converted document will be saved
convertOptionsActionOptional delegate to configure conversion options specific to the target format. The delegate receives an instance of TConvertOptions allowing you to customize the conversion process.

Exceptions

exceptioncondition
InvalidOperationExceptionThrown when the target format doesn’t match the expected format or licensing issues occur

See Also