PowerPointConverter Constructors

Overloads

PowerPointConverter(Byte[], String)Creates an instance of the PowerPointConverter class.
PowerPointConverter(Byte[], String, PowerPointConversionOptions)Creates an instance of the PowerPointConverter class.
PowerPointConverter(String)Creates an instance of the PowerPointConverter class.
PowerPointConverter(String, PowerPointConversionOptions)Creates an instance of the PowerPointConverter class.

PowerPointConverter(Byte[], String)

Creates an instance of the PowerPointConverter class.

public PowerPointConverter(Byte[] inputData, string InputFileName)
Public Sub New (inputData As Byte(), InputFileName As String)

Parameters

inputData
Byte[]

powerpoint document content in byte array format

InputFileName
String

Name of the powerpoint 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:

Examples

Example shows how to use PowerPointConverter class with input file as parameter.
Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

    
    
    Dim powerPointInputByte As Byte()=File.ReadAllBytes("C:\MyDocument.ppt")
   ' Create new instance of Converter by providing suitable parameters.
    Dim powerPointConverter As PowerPointConverter = New PowerPointConverter(powerPointInputByte,"MyDocument.ppt)

    ' Call Convert method to start conversion
    powerPointConverter.Convert("C:\MyOutput.pdf")

End Sub
 
End Module
using ceTe.DynamicPDF.Conversion;

class MyClass
{
    static void Main()
    {
    
        
        byte[] powerPointInputByte=File.ReadAllBytes("C:\MyDocument.ppt");      
        
        // Create new instance of Converter by providing suitable parameters.
        PowerPointConverter powerPointConverter = new PowerPointConverter(powerPointInputByte,"MyDocument.ppt");

        //Call Convert method to start conversion
        powerPointConverter.Convert(@"C:\MyOutput.pdf");
    }
}

PowerPointConverter(Byte[], String, PowerPointConversionOptions)

Creates an instance of the PowerPointConverter class.

public PowerPointConverter(Byte[] inputData, string InputFileName, PowerPointConversionOptions conversionOptions)
Public Sub New (inputData As Byte(), InputFileName As String, conversionOptions As PowerPointConversionOptions)

Parameters

inputData
Byte[]

powerpoint document content in byte array format

InputFileName
String

Name of the powerpoint document from which the data needs to be read

conversionOptions
PowerPointConversionOptions

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:

Examples

Example shows how to use PowerPointConverter class with inputfile path and conversionOption as parameter.
Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

    ' create new instance of PowerPointConversionOptions.
    Dim conversionOptions As PowerPointConversionOptions = New PowerPointConversionOptions(True)
    
    Dim powerPointInputByte As Byte()=File.ReadAllBytes("C:\MyDocument.jpg")
   ' Create new instance of Converter by providing suitable parameters.
    Dim powerPointConverter As PowerPointConverter = New PowerPointConverter(powerPointInputByte,"MyDocument.ppt",conversionOptions)

    ' Call Convert method to start conversion
    powerPointConverter.Convert("C:\MyOutput.pdf")

End Sub
 
End Module
using ceTe.DynamicPDF.Conversion;

class MyClass
{
    static void Main()
    {
    
    // create new instance of PowerPointConversionOptions.
        PowerPointConversionOptions conversionOptions = new PowerPointConversionOptions(true); 
        
        byte[] powerPointInputByte=File.ReadAllBytes("C:\MyDocument.jpg");      
        
        // Create new instance of Converter by providing suitable parameters.
        PowerPointConverter powerPointConverter = new PowerPointConverter(powerPointInputByte,"MyDocument.ppt", conversionOptions);

        //Call Convert method to start conversion
        powerPointConverter.Convert(@"C:\MyOutput.pdf");
    }
}

PowerPointConverter(String)

Creates an instance of the PowerPointConverter class.

public PowerPointConverter(string inputFilePath)
Public Sub New (inputFilePath As String)

Parameters

inputFilePath
String

Path where the powerpoint document is located

Licensing Info

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

Examples

Example to show how to use PowerPointConverter constructor with inputFilePath as parameter.
Imports ceTe.DynamicPDF.Conversion

Module Module1

    Sub Main()
    
        Dim powerPoint As PowerPointConverter =new PowerPointConverter ("C:\MyDocument.ppt")
         
        ' Call Convert method to do conversion synchronously
        powerPoint.Convert( "C:\MyOutput.pdf")

    End Sub
End Module
using System;
using ceTe.DynamicPDF.Conversion;
using ceTe.DynamicPDF.Conversion.PowerPoint;

class MyClass
{
    static void Main()
    {

        PowerPointConverter powerPoint=new PowerPointConverter("C:\MyDocument.ppt");
        powerPoint.Convert("C:\MyOutput.pdf");
    }  
}

PowerPointConverter(String, PowerPointConversionOptions)

Creates an instance of the PowerPointConverter class.

public PowerPointConverter(string inputFilePath, PowerPointConversionOptions conversionOptions)
Public Sub New (inputFilePath As String, conversionOptions As PowerPointConversionOptions)

Parameters

inputFilePath
String

Path to the powerpoint document from which the data needs to be read

conversionOptions
PowerPointConversionOptions

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:

Examples

Example shows how to use PowerPointConverter class with input filename and conversionOptions as parameter.
Imports ceTe.DynamicPDF.Conversion

Module Module1

Sub Main()

    ' create new instance of PowerPointConversionOptions.
    Dim conversionOptions As PowerPointConversionOptions = New PowerPointConversionOptions(True)
    
   ' Create new instance of Converter by providing suitable parameters.
    Dim powerPointConverter As PowerPointConverter = New PowerPointConverter("C:\MyDocument.ppt,conversionOptions)

    ' Call Convert method to start conversion
    powerPointConverter.Convert("C:\MyOutput.pdf")

End Sub
 
End Module
using ceTe.DynamicPDF.Conversion;

class MyClass
{
    static void Main()
    {
    
    // create new instance of PowerPointConversionOptions.
        PowerPointConversionOptions conversionOptions = new PowerPointConversionOptions(true); 
        
        
        // Create new instance of Converter by providing suitable parameters.
        PowerPointConverter powerPointConverter = new PowerPointConverter("C:\MyDoucment.ppt, conversionOptions);

        //Call Convert method to start conversion
        powerPointConverter.Convert(@"C:\MyOutput.pdf");
    }
}

See Also

PowerPointConverter
ceTe.DynamicPDF.Conversion

In this topic