Convert PowerPoint file 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.

PDF converted from PowerPoint file with GemBox.Presentation
Screenshot of 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

Want more?

Next example GitHub

Check the next example or select an example from the menu. You can also download our examples from the GitHub.


Like it?

Download Buy

If you want to try the GemBox.Presentation yourself, you can download the free version. It delivers the same performance and set of features as the professional version, but with some operations limited. To remove the limitation, you need to purchase a license.