How to Convert PowerPoint to Tiff using Python

This simple how-to topic focuses on how to convert PowerPoint to TIFF using Python along with the detailed steps to set up the environment and a working sample code. You can also consider converting PPT to TIFF in Python by using the same example code provided in this topic. This application can be used in any operating system configured with Python and .NET Core Framework including MS Windows, Linux or macOS.

Steps to Convert PowerPoint to TIFF using Python

  1. Configure the environment to use Aspose.Slides for Python via .NET in your Python application
  2. Add aspose.pydrawing and aspose.slides namespaces in your project for exporting PPTX to TIFF
  3. Load the source presentation by creating an instance of the Presentation class
  4. Create a Tiffoptions class object to set the output TIFF options
  5. Set the desired TIFF options including the DPI and Image size settings
  6. The Save method in Python converts PPTX to TIFF

The above steps convert the presentation to TIFF in Python by using a few API calls where the process is commenced by loading the source presentation file using the Presentation class. Then by using the TiffOptions class object, the output TIFF image options including image size and DPI are set before saving the presentation as a TIFF image on the disk using the save method.

Code to Convert PPTX to TIFF in Python

The above example provides comprehensive steps and code to convert PPTX to Tiff in Python. The TiffOptions class can also customize the output TIFF by using the options like setting compression_type, pixel_format, show_hidden_slides and notes_comments_layouting. The above application is able to seamlessly convert PPTX to TIFF without installing MS PowerPoint or any other third-party tool.

In this example, we learnt to generate TIFF from PowerPoint in Python by using a simple API interface. If you are interested in converting the presentation to HTML, refer to the article on how to create PowerPoint slides in HTML using Python.

 English