Convert PowerPoint files to PDF in C# and VB.NET

GemBox.Presentation enables you to easily convert presentations into different file formats in C# and VB.NET. For example, you can convert PowerPoint files into a different PowerPoint format or into PDF, XPS, and image formats.

To do this, just load a PowerPoint presentation and save it into another file format as in the following example. For more details about supported presentation file formats in GemBox.Presentation, see Supported File Formats help page.

Screenshot of PDF converted from PowerPoint file with GemBox.Presentation
PDF converted from PowerPoint file with GemBox.Presentation
Upload your file (Drag file here)
using GemBox.Presentation;

class Program
{
    static void Main()
    {
        // If using Professional version, put your serial key below.
        ComponentInfo.SetLicense("FREE-LIMITED-KEY");

        var presentation = PresentationDocument.Load("%InputFileName%");

        // In order to achieve the conversion of a loaded PowerPoint file to PDF,
        // we just need to save a PresentationDocument object to desired 
        // output file format.
        presentation.Save("Convert.%OutputFileType%");
    }
}
Imports GemBox.Presentation

Module Program

    Sub Main()

        ' If using Professional version, put your serial key below.
        ComponentInfo.SetLicense("FREE-LIMITED-KEY")

        Dim presentation = PresentationDocument.Load("%InputFileName%")

        ' In order to achieve the conversion of a loaded PowerPoint file to PDF,
        ' we just need to save a PresentationDocument object to desired 
        ' output file format.
        presentation.Save("Convert.%OutputFileType%")
    End Sub
End Module

Check next example or download examples from GitHub.