ImageConverter Constructors
Overloads
ImageConverter(Byte[]) | Creates an instance of the ImageConverter class. |
ImageConverter(Byte[], ImageConversionOptions) | Creates an instance of the ImageConverter class. |
ImageConverter(String) | Creates an instance of the ImageConverter class. |
ImageConverter(String, ImageConversionOptions) | Creates an instance of the ImageConverter class. |
ImageConverter(Byte[])
Creates an instance of the ImageConverter class.
public ImageConverter(Byte[] imageData)
Public Sub New (imageData As Byte())
Parameters
- imageData
- Byte[]
Image data in byte array format
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
Example shows how to use ImageConverter with inputbyte array as parameter.Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
Dim imageInputByte As Byte()=File.ReadAllBytes("C:\MyDocument.jpg")
' Create new instance of Converter by providing suitable parameters.
Dim imageConverter As ImageConverter = New ImageConverter(imageInputByte)
' Call Convert method to start conversion
imageConverter.Convert("C:\MyOutput.pdf")
End Sub
End Module
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
byte[] imageInputByte=File.ReadAllBytes("C:\MyDocument.jpg");
// Create new instance of Converter by providing suitable parameters.
ImageConverter imageConverter = new ImageConverter(imageInputByte);
//Call Convert method to start conversion
imageConverter.Convert(@"C:\MyOutput.pdf");
}
}
ImageConverter(Byte[], ImageConversionOptions)
Creates an instance of the ImageConverter class.
public ImageConverter(Byte[] imageData, ImageConversionOptions conversionOptions)
Public Sub New (imageData As Byte(), conversionOptions As ImageConversionOptions)
Parameters
- imageData
- Byte[]
Image data in byte array format
- conversionOptions
- ImageConversionOptions
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
Example shows how to use ImageConverter with inputbyte array as parameter.Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create new instance of ImageConversionOptions.
Dim conversionOptions As ImageConversionOptions = New ImageConversionOptions(True)
Dim imageInputByte As Byte()=File.ReadAllBytes("C:\MyDocument.jpg")
' Create new instance of Converter by providing suitable parameters.
Dim imageConverter As ImageConverter = New ImageConverter(imageInputByte,conversionOptions)
' Call Convert method to start conversion
imageConverter.Convert("C:\MyOutput.pdf")
End Sub
End Module
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// create new instance of ImageConversionOptions.
ImageConversionOptions conversionOptions = new ImageConversionOptions(true);
byte[] imageInputByte=File.ReadAllBytes("C:\MyDocument.jpg");
// Create new instance of Converter by providing suitable parameters.
ImageConverter imageConverter = new ImageConverter(imageInputByte, conversionOptions);
//Call Convert method to start conversion
imageConverter.Convert(@"C:\MyOutput.pdf");
}
}
ImageConverter(String)
Creates an instance of the ImageConverter class.
public ImageConverter(string inputFilePath)
Public Sub New (inputFilePath As String)
Parameters
- inputFilePath
- String
Path where the image 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
Example shows how to use ImageConverter.Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' Create new instance of Converter by providing suitable parameters.
Dim imageConverter As ImageConverter = New ImageConverter("C:\MyDocument.jpg")
' Call Convert method to start conversion
imageConverter.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.
ImageConverter imageConverter = new ImageConverter(@"C:\MyDocument.jpg");
//Call Convert method to start conversion
imageConverter.Convert(@"C:\MyOutput.pdf");
}
}
ImageConverter(String, ImageConversionOptions)
Creates an instance of the ImageConverter class.
public ImageConverter(string inputFilePath, ImageConversionOptions conversionOptions)
Public Sub New (inputFilePath As String, conversionOptions As ImageConversionOptions)
Parameters
- inputFilePath
- String
Path where the image is located
- conversionOptions
- ImageConversionOptions
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
Example shows how to use ImageConverter with inputFilePath and ConversionOptions as parameter.Imports ceTe.DynamicPDF.Conversion
Module Module1
Sub Main()
' create new instance of ImageConversionOptions.
Dim conversionOptions As ImageConversionOptions = New ImageConversionOptions(True)
' Create new instance of Converter by providing suitable parameters.
Dim imageConverter As ImageConverter = New ImageConverter("C:\MyDocument.jpg",conversionOptions)
' Call Convert method to start conversion
imageConverter.Convert("C:\MyOutput.pdf")
End Sub
End Module
using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// create new instance of ImageConversionOptions.
ImageConversionOptions conversionOptions = new ImageConversionOptions(true);
// Create new instance of Converter by providing suitable parameters.
ImageConverter imageConverter = new ImageConverter(@"C:\MyDocument.jpg", conversionOptions);
//Call Convert method to start conversion
imageConverter.Convert(@"C:\MyOutput.pdf");
}
}