RtfConverter Constructors
Overloads
RtfConverter(Byte[], String) | Creates an instance of the RtfConverter class. |
RtfConverter(Byte[], String, RtfConversionOptions) | Creates an instance of the RtfConverter class. |
RtfConverter(String) | Creates an instance of the RtfConverter class. |
RtfConverter(String, RtfConversionOptions) | Creates an instance of the RtfConverter class. |
RtfConverter(Byte[], String)
Creates an instance of the RtfConverter class.
public RtfConverter(Byte[] inputData, string inputFileName)
Public Sub New (inputData As Byte(), inputFileName As String)
Parameters
- inputData
- Byte[]
rtf document content in byte array format
- inputFileName
- String
Name of the rtf document from which the data needs to be read
Licensing Info
This constructor is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
Examples
This example shows how to use RtfConverter class with input byte array and inputFile path as parameters.Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
'Read all file data to a byte array.
Dim inputData As Byte() = File.ReadAllBytes("C:\MyDocument.rtf")
' Create new instance of Converter by providing suitable parameters.
Dim rtfConversion As RtfConverter = New RtfConverter(inputData,"MyDocument.rtf")
' Call Convert method to start conversion
rtfConversion.Convert("C:\MyOutput.pdf")
End Sub
End Module
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// Read all file data to a byte array.
byte [] inputData=File.ReadAllBytes("C:\MyDocument.rtf");
// Create new instance of Converter by providing suitable parameters.
RtfConverter rtf = new RtfConverter(inputData,"MyDocument.rtf");
//Call Convert method to start conversion
rtf.Convert(@"C:\MyOutput.pdf");
}
}
RtfConverter(Byte[], String, RtfConversionOptions)
Creates an instance of the RtfConverter class.
public RtfConverter(Byte[] inputData, string inputFileName, RtfConversionOptions conversionOptions)
Public Sub New (inputData As Byte(), inputFileName As String, conversionOptions As RtfConversionOptions)
Parameters
- inputData
- Byte[]
rtf document content in byte array format
- inputFileName
- String
Name of the rtf document from which the data needs to be read
- conversionOptions
- RtfConversionOptions
Initializes the ConversionOptions property of the class.
Licensing Info
This constructor is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
Examples
This example shows how to use RtfConverter class with inputDataByte, inputFile path and conversionOptions as parameter.Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create new instance of RtfConversionOptions.
Dim conversionOptions As RtfConversionOptions = New RtfConversionOptions(True)
'Read all file data to a byte array.
Dim inputData As Byte() = File.ReadAllBytes("C:\MyDocument.rtf")
' Create new instance of Converter by providing suitable parameters.
Dim rtfConversion As RtfConverter = New RtfConverter(inputData,"MyDocument.rtf",conversionOptions)
' Call Convert method to start conversion
rtfConversion.Convert("C:\MyOutput.pdf")
End Sub
End Module
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// create new instance of RtfConversionOptions.
RtfConversionOptions conversionOptions=new RtfConversionOptions(true);
// create new instance of RtfConversionOptions.
byte [] inputData=File.ReadAllBytes("C:\MyDocument.rtf");
// Create new instance of Converter by providing suitable parameters.
RtfConverter rtf = new RtfConverter(inputData, "MyDocument.rtf",conversionOptions);
//Call Convert method to start conversion
rtf.Convert(@"C:\MyOutput.pdf");
}
}
RtfConverter(String)
Creates an instance of the RtfConverter class.
public RtfConverter(string inputFilePath)
Public Sub New (inputFilePath As String)
Parameters
- inputFilePath
- String
Path where the rtf document is located
Licensing Info
This constructor is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
Examples
This example shows how to use RtfConverter with inputFilePath as parameter.Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' Create new instance of Converter by providing suitable parameters.
Dim rtfConversion As RtfConverter = New RtfConverter("C:\MyDocument.rtf")
' Call Convert method to start conversion
rtfConversion.Convert("C:\MyOutput.pdf")
End Sub
End Module
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// Create new instance of Converter by providing suitable parameters.
RtfConverter rtf = new RtfConverter(@"C:\MyDocument.rtf");
//Call Convert method to start conversion
rtf.Convert(@"C:\MyOutput.pdf");
}
}
RtfConverter(String, RtfConversionOptions)
Creates an instance of the RtfConverter class.
public RtfConverter(string inputFilePath, RtfConversionOptions conversionOptions)
Public Sub New (inputFilePath As String, conversionOptions As RtfConversionOptions)
Parameters
- inputFilePath
- String
Path to the rtf document from which the data needs to be read
- conversionOptions
- RtfConversionOptions
Initializes the ConversionOptions property of the class.
Licensing Info
This constructor is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:
- An active DynamicPDF Subscription
- An active DynamicPDF Professional or Professional Plus Subscription with DynamicPDF Converter selected.
- A DynamicPDF Converter for .NET v3.X Developer license.
Examples
This example shows how to use RtfConverter class with inputFile path and conversionOptions as parameter.Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create new instance of RtfConversionOptions.
Dim conversionOptions As RtfConversionOptions = New RtfConversionOptions(True)
' Create new instance of Converter by providing suitable parameters.
Dim rtfConversion As RtfConverter = New RtfConverter("C:\MyDocument.rtf",conversionOptions)
' Call Convert method to start conversion
rtfConversion.Convert("C:\MyOutput.pdf")
End Sub
End Module
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// create new instance of RtfConversionOptions.
RtfConversionOptions conversionOptions=new RtfConversionOptions(true);
// Create new instance of Converter by providing suitable parameters.
RtfConverter rtf = new RtfConverter(@"C:\MyDocument.rtf",conversionOptions);
//Call Convert method to start conversion
rtf.Convert(@"C:\MyOutput.pdf");
}
}