Convert Powerpoint to PDF
DynamicPDF Converter can easily convert a Microsoft Powerpoint file into a PDF document.
How to convert Powerpoint to PDF in C#
The following steps and sample code illustrate converting Powerpoint to PDF using DynamicPDF Converter.
Steps for converting Powerpoint to PDF (Convert)
- Generate the PDF using the static method
Convert
by passing the existing powerpoint file and PDF file to be created.
Sample Code - C#
Converter.Convert("DocumentA.pptx", "DocumentA.pdf");
Steps for converting Powerpoint to PDF (PowerPointConversionOptions)
- Create a
PowerPointConversionOptions
object to set the options. - Create a
PowerPointConverter
object by specifying the Excel file and the options. - Invoke the
Convert
method on thePowerPointConverter
and specify the PDF file name.
Sample Code - C#
PowerPointConversionOptions options = new PowerPointConversionOptions(false);
PowerPointConverter pptConverter = new PowerPointConverter("DocumentA.pptx"), options);
pptConverter.Convert("DocumentA.pdf");
GitHub Project
Clone or view the example project at GitHub. This example on this page is in the PptFileConversion.cs file. Examples are provided for both C# and VB.NET.
Getting Started
Get started by installing the NuGet package or referring to the online documentation.
NuGet Package
DynamicPDF Converter is available on NuGet and is part of the ceTe.DynamicPDF.Converter.NET
package. The easiest way to install the DynamicPDF Converter package is by using the Visual Studio Package Manager. However, you can also download it directly from NuGet.
NuGet Package ID: ceTe.DynamicPDF.Converter.NET
DynamicPDF Core Suite Information
More information can be found at the DynamicPDF Converter webpage.