How to Save PowerPoint Slides with Notes as PDF in Python

This short tutorial guides on how to save PowerPoint slides with notes as PDF in Python. It contains the details about environment configuration, a sequence of steps to write the program, and a runnable sample code to convert PowerPoint to PDF with speaker notes in Python. Different settings for the notes are also discussed before rendering to PDF along with the scenarios where particular slides are to be rendered instead of a complete presentation.

Steps to Convert PowerPoint with Notes to PDF in Python

  1. Set the environment to use Aspose.Slides for Python via .NET to render slides with notes
  2. Open the source presentation having speaker notes in it
  3. Create and initialize the PdfOptions object
  4. Set the position and layout for the notes
  5. Save the PDF file using the desired properties

These steps summarize the process to save PowerPoint slides with notes as PDF in Python. You will get the reference to all the import API calls that are necessary to write the application like using the Presentation class to load the source file, and the PdfOptions class object to customize the resultant PDF file. In the end, the presentation is saved as a PDF file using the configurations in the PdfOptions object.

Code to Save PowerPoint with Notes as PDF in Python

This code demonstrates how to save PowerPoint as PDF with notes in Python. It uses slides.export.PdfOptions class property notes_comments_layouting.notes_position to set the positions of notes that is None by default. If you are interested in rendering the selected slides with notes, you may create an empty presentation and clone the individual slides to the new presentation that is ultimately saved as PDF in a similar manner described above.

In this article, we have learned how to save a PowerPoint as a PDF with notes in Python. If you want to learn the process to create slide images, refer to the article on how to create PowerPoint slide image using Python.

 English