Convert PowerPoint to PDF
DynamicPDF Converter for .NET can easily convert a Microsoft PowerPoint file to a PDF document. The following C# example shows you how.
How to Convert PowerPoint to PDF
The following steps and C# sample code illustrate converting PowerPoint to PDF using DynamicPDF Converter for .NET.
Steps to convert PowerPoint to PDF (using static Converter)
- 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 to convert PowerPoint to PDF (using PowerPointConverter)
- Create a
PowerPointConversionOptions
instance and set its options. - Create a
PowerPointConverter
instance by specifying an Excel file andPowerPointConversionOptions
instance. - Invoke the
PowerPointConverter
instance'sConvert
method specifying the file name to save the converted PDF.
Sample Code - C#
PowerPointConversionOptions options = new PowerPointConversionOptions(false);
PowerPointConverter pptConverter = new PowerPointConverter("DocumentA.pptx"), options);
pptConverter.Convert("DocumentA.pdf");
GitHub Project
Examples are provided in C# and VB.NET. Clone or view the example project at GitHub.
- C# - PptFileConversion.cs
- VB.NET - PptFileConversion.vb
Getting Started
Get started easily by installing DynamicPDF Converter for .NET through NuGet or manually. Then, refer to the documentation for more information on using and purchasing.
NuGet Package
The easiest way to install DynamicPDF Converter for .NET is by obtaining the NuGet package using Visual Studio's Package Manager. You can also obtain the NuGet package by downloading it directly. Refer to the installation documentation for more information.
NuGet Package ID: ceTe.DynamicPDF.Converter.NET
More Information on PowerPoint Conversion
- Simple Conversion
- Converting PowerPoint Presentations to PDFs
- Chapter 8, Converting Microsoft PowerPoint, in the book DynamicPDF Converter for .NET by Example available on GitHub.
DynamicPDF Converter Information
DynamicPDF Converter for .NET allows any .NET developer to dynamically convert many common file formats to PDF documents in real-time. It supports converting over 50 file types to PDF, including HTML and MS Office formats. The software supports events, enabling developers to easily and accurately handle both successful and failed conversions. It is intuitive and seamlessly integrates with all our DynamicPDF products. With a Free Evaluation Edition to try, why not start using DynamicPDF Converter Today!