Convert PowerPoint to PDF with Notes in C#

Overview

While converting PowerPoint to PDF, you can also control how notes and comments are placed in exported document. It covers the following topics.

Convert PowerPoint to PDF with Notes

The Save method provided by the Presentation class can be used to convert a PowerPoint PPT or PPTX presentation to a PDF with notes. With Aspose.Slides for .NET, saving a Microsoft PowerPoint presentation to a PDF with notes is a straightforward process. You simply load the presentation, configure the SlidesLayoutOptions property to include notes, and save the file as a PDF. The C# code snippet below demonstrates how to convert a sample presentation to a PDF in Notes Slide view:

// Instantiate a Presentation object that represents a presentation file
using (Presentation presentation = new Presentation("SelectedSlides.pptx"))
{
    // Configure PDF options for rendering notes
    PdfOptions pdfOptions = new PdfOptions
    {
        SlidesLayoutOptions = new NotesCommentsLayoutingOptions
        {
            NotesPosition = NotesPositions.BottomFull // Render notes below the slide
        }
    };

    // Save the presentation to PDF with notes
    presentation.Save("PDFnotes_out.pdf", SaveFormat.Pdf, pdfOptions);
}