.NET Framework Class Library

DocumentConverter.ConvertToFile Method (Object, String, String, String, ConversionMode, 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 (Object, String, String, String, ConversionMode, EncoderSettings, ConverterSettings, String)

Convert specified files to specified format using specified settings.

Namespace: Gnostice.Converter

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

Syntax

Visual Basic

Public Function ConvertToFile ( _
 input As Object, _
 outputFileFormat As String, _
 outputDir As String, _
 Optional baseFileName As String = "", _
 Optional conversionMode As ConversionMode = ConversionMode.ConvertToSeperateFiles, _
 Optional encoderSettings As EncoderSettings = Nothing, _
 Optional converterSettings As ConverterSettings = Nothing, _
 Optional inputDocPassword As String = "" _
As List(Of String)

C#

public List<stringConvertToFile(
 Object input,
 string outputFileFormat,
 string outputDir,
 string baseFileName = "",
 ConversionMode conversionMode = ConversionMode.ConvertToSeperateFiles,
 EncoderSettings encoderSettings = null,
 ConverterSettings converterSettings = null,
 string inputDocPassword = ""
)

Visual C++

public:
List<String^>^ ConvertToFile(
 Objectinput,
 StringoutputFileFormat,
 StringoutputDir,
 StringbaseFileName = L"",
 ConversionMode conversionMode = ConversionMode::ConvertToSeperateFiles,
 EncoderSettingsencoderSettings = nullptr,
 ConverterSettingsconverterSettings = nullptr,
 StringinputDocPassword = L""
)

Parameters

input

Type: System.Object

\input document that needs to be converted (a stream, a \file pathname, a list of streams, a list of pathnames)

outputFileFormat

Type: System.String

format to which the input document needs to be converted

outputDir

Type: System.String

folder to which the converted documents need to be saved

baseFileName (Optional)

Type: System.String

prefix for the output documents

conversionMode (Optional)

Type: Gnostice.Documents.ConversionMode

encoderSettings (Optional)

Type: Gnostice.Core.EncoderSettings

format\-specific conversion settings

converterSettings (Optional)

Type: Gnostice.Converter.ConverterSettings

conversion operation settings

inputDocPassword (Optional)

Type: System.String

password with which the \input document needs to be opened

See Also

DocumentConverter Class

DocumentConverter Members

ConvertToFile Overload

Gnostice.Converter Namespace