.NET Framework Class Library

DocumentConverter.ConvertToFile Method (String, String, EncoderSettings, ConverterSettings, String)

<< Click to Display Table of Contents >>

Navigation:  Gnostice Document Studio .NET > Reference Documentation > API Reference > Gnostice.Converter Namespace > DocumentConverter Class > DocumentConverter Methods > ConvertToFile Method  >

.NET Framework Class Library

DocumentConverter.ConvertToFile Method (String, String, EncoderSettings, ConverterSettings, String)

Converts document from specified file to specified format and saves it to specified file.

Namespace: Gnostice.Converter

Assembly:  Gnostice.Converter (in Gnostice.Converter.dll)

Syntax

Visual Basic

Public Sub ConvertToFile ( _
 inputDocument As String, _
 outputDocument As String, _
 Optional encoderSettings As EncoderSettings = Nothing, _
 Optional converterSettings As ConverterSettings = Nothing, _
 Optional inputDocPassword As String = "" _
)

C#

public void ConvertToFile(
 string inputDocument,
 string outputDocument,
 EncoderSettings encoderSettings = null,
 ConverterSettings converterSettings = null,
 string inputDocPassword = ""
)

Visual C++

public:
void ConvertToFile(
 StringinputDocument,
 StringoutputDocument,
 EncoderSettingsencoderSettings = nullptr,
 ConverterSettingsconverterSettings = nullptr,
 StringinputDocPassword = L""
)

Parameters

inputDocument

Type: System.String

Pathname of the document that needs to be converted.

outputDocument

Type: System.String

Pathname of the file to which the converted document needs to be saved to.

encoderSettings (Optional)

Type: Gnostice.Core.EncoderSettings

Format\-specific conversion settings with which the document needs to be converted.

converterSettings (Optional)

Type: Gnostice.Converter.ConverterSettings

Conversion settings with which the document needs to be converted.

inputDocPassword (Optional)

Type: System.String

Password with which the document needs to be opened if it is encrypted.

See Also

DocumentConverter Class

DocumentConverter Members

ConvertToFile Overload

Gnostice.Converter Namespace