PowerPointConverter.Convert
Overloads
Convert() | Converts powerpoint to Pdf |
Convert(Byte[]) | Converts powerpoint to Pdf |
Convert(String) | Converts powerpoint to Pdf |
Convert()
Converts powerpoint to Pdf
public Byte[] Convert()
Returns
returns a output pdf byte array
Licensing Info
This method 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 convert method with output byte array as return type.using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// Create new instance of Converter.
PowerPointConverter powerPoint = new PowerPointConverter(@"C:\MyDocument.ppt");
//Call Convert method to start conversion
byte []output=powerPoint.Convert();
if(output!=null)
{
//save byte array output to a file.
File.WriteAllBytes("C:\MyOutputFile.pdf",output);
}
}
}
Convert(Byte[])
Converts powerpoint to Pdf
public Byte[] Convert(Byte[] pdfToAppendTo)
Parameters
- pdfToAppendTo
- Byte[]
Contents of Pdf in byte array format, to which the current conversion needs to be appended to
Returns
returns a output pdf byte array
Licensing Info
This method 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 powerPointConverter with byte array as parameter and pdf byte array as return type.using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// Create new instance of Converter.
PowerPointConverter powerPoint = new PowerPointConverter(@"C:\MyDocument.ppt");
//Call Convert method to start conversion
byte []output=powerPoint.Convert();
if(output!=null)
{
byte []finalOutputByte=powerPoint.Convert(output);
//save byte array output to a file.
File.WriteAllBytes("C:\MyOutputFile.pdf",finalOutputByte);
}
}
}
Convert(String)
Converts powerpoint to Pdf
public void Convert(string outputFilePath)
Parameters
- outputFilePath
- String
Path where the output file needs to be saved
Licensing Info
This method 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 PowerPointConverter class.using ceTe.DynamicPDF.Conversion;
class MyClass
{
static void Main()
{
// Create new instance of Converter by providing suitable parameters.
PowerPointConverter powerPointConverter = new PowerPointConverter(@"C:\MyDocument.ppt", conversionOptions);
//Call Convert method to start conversion
powerPointConverter.Convert(@"C:\MyOutput.pdf");
}
}
See Also
PowerPointConverterceTe.DynamicPDF.Conversion