Convert PowerPoint to PDF with Notes in C#
Contents
[
Hide
]
Overview
While converting PowerPoint to PDF, you can also control how notes and comments are placed in exported document. It covers the following topics.
- C# Convert PPT to PDF with Notes
- C# Convert PPTX to PDF with Notes
- C# Convert ODP to PDF with Notes
- C# Convert PowerPoint to PDF with Notes
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);
}
You may to want to check out Aspose PowerPoint to PDF or PPT to PDF converter.