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
Convert PowerPoint to PDF Screenshot

See the full code below, use Run Example to execute.

Upload your file(Drag files here)

Download an input file

using System;
using System.IO;
using System.Linq;
using System.Text;
using GemBox.Presentation;
using GemBox.Presentation.Tables;

class Sample
{
    [STAThread]
    static void Main(string[] args)
    {
        // If using Professional version, put your serial key below.
        ComponentInfo.SetLicense("FREE-LIMITED-KEY");

        PresentationDocument presentation = PresentationDocument.Load("Reading.pptx");

        // 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.pptx");
    }
}
Imports System.IO
Imports System.Text
Imports GemBox.Presentation
Imports GemBox.Presentation.Tables

Module Samples

    Sub Main()

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

        Dim presentation As PresentationDocument = PresentationDocument.Load("Reading.pptx")

        ' 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.pptx")

    End Sub

End Module