ImageConversionOptions Constructors

Overloads

ImageConversionOptions([Optional] Boolean)Initializes a new instance of the ImageConversionOptions class.
ImageConversionOptions(Double, Double, Double)Initializes a new instance of the ImageConversionOptions class.
ImageConversionOptions(Double, Double, Double, Double)Initializes a new instance of the ImageConversionOptions class.
ImageConversionOptions(Double, Double, Double, Double, [Optional] Boolean)Initializes a new instance of the ImageConversionOptions class.
ImageConversionOptions(PageSize, PageOrientation, Double)Initializes a new instance of the ImageConversionOptions class.
ImageConversionOptions(PageSize, PageOrientation, Double, Double, [Optional] Boolean)Initializes a new instance of the ImageConversionOptions class.

ImageConversionOptions([Optional] Boolean)

Initializes a new instance of the ImageConversionOptions class.

public ImageConversionOptions(bool appendToPdf)
Public Sub New (appendToPdf As Boolean)

Parameters

appendToPdf
Boolean

Specify if append option to be enabled

Licensing Info

This constructor is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:

Examples

Example shows how to use ImageConversion conversionOptions with appendToPdf 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");
    }
}

ImageConversionOptions(Double, Double, Double)

Initializes a new instance of the ImageConversionOptions class.

public ImageConversionOptions(double width, double height, double margins)
Public Sub New (width As Double, height As Double, margins As Double)

Parameters

width
Double

Width of the page in points

height
Double

Height of hte page in points

margins
Double

Margins of the page in points

Licensing Info

This constructor is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:

Examples

Example shows how to use ImageConversionOptions with width,height and margin as parameter.
Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

    ' create new instance of ImageConversionOptions.
    Dim conversionOptions As ImageConversionOptions = New ImageConversionOptions(500,1000,10)
    
   ' 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(500,1000,10);
        
        // 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");
    }
}

ImageConversionOptions(Double, Double, Double, Double)

Initializes a new instance of the ImageConversionOptions class.

public ImageConversionOptions(double width, double height, double leftAndRightMargins, double topAndBottomMargins)
Public Sub New (width As Double, height As Double, leftAndRightMargins As Double, topAndBottomMargins As Double)

Parameters

width
Double

Width of the page in points

height
Double

Height of the page in points

leftAndRightMargins
Double

The left and right margins of the page in points.

topAndBottomMargins
Double

The top and bottom margins of the page in points.

Licensing Info

This constructor is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:

Examples

Example shows how to use ImageConversionOptions with Width,height, LeftAndRightMargin and TopAndBottomMargin.
Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

    ' create new instance of ImageConversionOptions.
    Dim conversionOptions As ImageConversionOptions = New ImageConversionOptions(500,1000,10,10)
    
   ' 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(500,1000,10,10);
         
        
        // 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");
    }
}

ImageConversionOptions(Double, Double, Double, Double, [Optional] Boolean)

Initializes a new instance of the ImageConversionOptions class.

public ImageConversionOptions(double width, double height, double leftAndRightMargins, double topAndBottomMargins, [bool appendToPdf = null])
Public Sub New (width As Double, height As Double, leftAndRightMargins As Double, topAndBottomMargins As Double, Optional appendToPdf As Boolean = null)

Parameters

width
Double

Width of the page in points

height
Double

Height of the page in points

leftAndRightMargins
Double

The left and right margins of the page in points.

topAndBottomMargins
Double

The top and bottom margins of the page in points.

appendToPdf
Boolean

Specify if append option to be enabled

Licensing Info

This constructor is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:

Examples

Example shows how to use ImageConversionOptions with Width,height, LeftAndRightMargin, TopAndBottomMargin and appendToPdf.
Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

    ' create new instance of ImageConversionOptions.
    Dim conversionOptions As ImageConversionOptions = New ImageConversionOptions(500,1000,10,10,false)
    
    ' 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(500,1000,10,10,false);
         
        
        // 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");
    }
}

ImageConversionOptions(PageSize, PageOrientation, Double)

Initializes a new instance of the ImageConversionOptions class.

public ImageConversionOptions(PageSize pageSize, PageOrientation orientation, double margins)
Public Sub New (pageSize As PageSize, orientation As PageOrientation, margins As Double)

Parameters

pageSize
PageSize

Size of the page

orientation
PageOrientation

Orientation of the page

margins
Double

Margins of the page in points

Licensing Info

This constructor is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:

Examples

Example shows how to use ImageConversionOptions with Page size, Orientation and margin.
Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

    ' create new instance of ImageConversionOptions.
    Dim conversionOptions As ImageConversionOptions = New ImageConversionOptions(PageSize.A4,PageOrientation.Portrait,10)
    
   ' 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(PageSize.A4,PageOrientation.Portrait,10);
         
        
        // 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");
    }
}

ImageConversionOptions(PageSize, PageOrientation, Double, Double, [Optional] Boolean)

Initializes a new instance of the ImageConversionOptions class.

public ImageConversionOptions(PageSize size, PageOrientation orientation, double leftAndRightMargins, double topAndBottomMargins, [bool appendToPdf = null])
Public Sub New (size As PageSize, orientation As PageOrientation, leftAndRightMargins As Double, topAndBottomMargins As Double, Optional appendToPdf As Boolean = null)

Parameters

size
PageSize

Size of the page

orientation
PageOrientation

Orientation of the page in points

leftAndRightMargins
Double

The left and right margins of the page in points.

topAndBottomMargins
Double

The top and bottom margins of the page in points.

appendToPdf
Boolean

Specify if append option to be enabled

Licensing Info

This constructor is a DynamicPDF Converter feature. One of the following is required for non-evaluation usage:

Examples

Example shows how to use ImageConversionOptions with Page size, Orientation, LeftAndRightMargin, TopAnd BottomMargin and AppendToPdf .
Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

    ' create new instance of ImageConversionOptions.
    Dim conversionOptions As ImageConversionOptions = New ImageConversionOptions(PageSize.A4,PageOrientation.Portrait,10,10,false)
    
   ' 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(PageSize.A4,PageOrientation.Portrait,10,10,false);
         
        
        // 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");
    }
}

See Also

ImageConversionOptions
ceTe.DynamicPDF.Conversion

In this topic