Convert PowerPoint Presentations to PDF with Notes in Python

Overview

This article explains how to convert PowerPoint presentations to PDF with speaker notes using Aspose.Slides for Python via Java. You can include notes below each slide and allow long notes to continue onto additional pages. For other PDF export settings, see Convert PowerPoint to PDF.

Convert PowerPoint to PDF with Notes

Use the save method of the Presentation class to export a PPT or PPTX presentation to PDF. To include speaker notes, create a NotesCommentsLayoutingOptions object and configure note placement with its setNotesPosition method. Assign this layout to PdfOptions using setSlidesLayoutOptions.

The following example loads sample.pptx and exports it to output.pdf with speaker notes below the slides:

import jpype
import asposeslides

if not jpype.isJVMStarted():
    jpype.startJVM()

from asposeslides.api import NotesCommentsLayoutingOptions, NotesPositions, PdfOptions, Presentation, SaveFormat

presentation = Presentation("sample.pptx")
try:
    # Configure PDF options for rendering speaker notes.
    notes_options = NotesCommentsLayoutingOptions()
    notes_options.setNotesPosition(NotesPositions.BottomFull)

    pdf_options = PdfOptions()
    pdf_options.setSlidesLayoutOptions(notes_options)

    # Save the presentation to PDF with speaker notes.
    presentation.save("output.pdf", SaveFormat.Pdf, pdf_options)
finally:
    presentation.dispose()

FAQ

How can I prevent long speaker notes from being cut off?

Use NotesPositions.BottomFull, as in the example above. This setting displays the full notes, using additional pages when needed.

Can I keep each slide and its notes on a single page?

Use NotesPositions.BottomTruncated. This setting limits the notes to one page, so notes that do not fit may be truncated.

How do I export slides without speaker notes?

Omit the notes layout configuration and use the standard PDF export described in Convert PowerPoint to PDF.