Convert PowerPoint to PDF with Notes in C#

Overview

In this article, you will learn how to convert PowerPoint presentations to PDF format with speaker notes using Aspose.Slides. This guide will cover the necessary steps and provide code examples to help you achieve this task efficiently. By the end of this article, you will be able to:

  • Implement the conversion process to transform PowerPoint slides into PDF documents while preserving the speaker notes.
  • Customize the output PDF to ensure that the speaker notes are included and formatted according to your requirements.

Convert PowerPoint to PDF with Notes

The Save method in the Presentation class can be used to convert a PPT or PPTX presentation to a PDF with speaker notes. With Aspose.Slides, you simply load the presentation, configure the layout options using the NotesCommentsLayoutingOptions class to include speaker notes, and then save the file as a PDF. The following code snippet demonstrates how to convert a sample presentation to a PDF in Notes Slide view.

using (Presentation presentation = new Presentation("sample.pptx"))
{
    // Configure PDF options for rendering speaker notes.
    PdfOptions pdfOptions = new PdfOptions
    {
        SlidesLayoutOptions = new NotesCommentsLayoutingOptions
        {
            NotesPosition = NotesPositions.BottomFull // Render speaker notes below the slide.
        }
    };

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