Convert PowerPoint to TIFF with Notes in Python
Overview
Aspose.Slides for Python via .NET provides a simple solution for converting PowerPoint and OpenDocument presentations (PPT, PPTX, and ODP) with notes to the TIFF format. This format is widely used for high-quality image storage, printing, and document archiving. With Aspose.Slides, you can not only export entire presentations with speaker notes but also generate slide thumbnails in the Notes Slide view. The conversion process is simple and efficient, utilizing the save
method of the Presentation class to transform the entire presentation into a series of TIFF images while preserving the notes and layout.
Convert a Presentation to TIFF with Notes
Saving a PowerPoint or OpenDocument presentation to TIFF with notes using Aspose.Slides for Python via .NET involves the following steps:
- Instantiate the Presentation class: Load a PowerPoint or OpenDocument file.
- Configure the output layout options: Use the NotesCommentsLayoutingOptions class to specify how notes and comments should be displayed.
- Save the presentation to TIFF: Pass the configured options to the save method.
Let’s say we have a “speaker_notes.pptx” file with the following slide:
The code snippet below demonstrates how to convert the presentation to a TIFF image in Notes Slide view using the slides_layout_options property.
# Instantiate the Presentation class that represents a presentation file.
with slides.Presentation("speaker_notes.pptx") as presentation:
notes_options = slides.export.NotesCommentsLayoutingOptions()
notes_options.notes_position = slides.export.NotesPositions.BOTTOM_FULL # Display the notes below the slide.
# Configure the TIFF options with Notes layouting.
tiff_options = slides.export.TiffOptions()
tiff_options.dpi_x = 300
tiff_options.dpi_y = 300
tiff_options.slides_layout_options = notes_options
# Save the presentation to TIFF with the speaker notes.
presentation.save("TIFF_with_notes.tiff", slides.export.SaveFormat.TIFF, tiff_options)
The result: