How to Save PowerPoint as PDF with Notes in C#

This quick tutorial explains how to save PowerPoint as PDF with notes in C#. You will get all the necessary details to configure the environment, a step-by-step program flow to write the application, and a runnable sample code to save PowerPoint with notes as PDF in C#. You will also learn the options to customize the comments layout along with the options to print the PowerPoint Presentation notes for specific slides only.

Steps to Save PowerPoint as PDF with Notes in C#

  1. Establish the environment to add Aspose.Slides for .NET to render to PDF with notes
  2. Load the presentation with notes into the Presentation object
  3. Instantiate the PdfOptions object to customize the output PDF file
  4. Set the notes commenting layout by setting desired properties
  5. Save the resultant PDF file having slides and notes both

These steps assist in how to save a PowerPoint as a PDF with notes in C#. All the necessary classes, methods, and properties are introduced here that are required like the Presentation class is used for loading the presentation, the PdfOptions class object is used for PDF customization and NotesCommentsLayouting property is referred to for setting the notes commenting layout. Once the PDF customization is done, the presentation is saved as a PDF using the PdfOptions object.

Code to Save PowerPoint PDF with Notes in C#

This code demonstrates the process to save PowerPoint presentation as PDF with notes in C#. The pdfOptions.NotesCommentsLayouting.NotesPosition property is set to BottomFull indicating that complete notes shall be rendered by using additional pages if required. On the other hand, if you want to render the selected slides with notes, you may create an empty presentation and clone the required slides from the source presentation into it thus rendering the newly created presentation to fulfill the requirement.

This article has taught us to convert PowerPoint with notes to PDF in C#. If you want to learn the process of adding an image watermark in a presentation, refer to the article on how to save slide as SVG in C#.

 English