Read the complete article on how to convert PowerPoint PPT/PPTX to TIFF in Python: https://blog.aspose.com/2022/03/08/convert-powerpoint-ppt-to-tiff-in-python/
Last active
March 8, 2022 11:00
-
-
Save aspose-com-gists/1fa402fc19dcf41f6a169d63cabee21d to your computer and use it in GitHub Desktop.
Convert PowerPoint PPT or PPTX to TIFF in Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import aspose.slides as slides | |
import aspose.pydrawing as drawing | |
# Load presentation | |
presentation = slides.Presentation("presentation.pptx") | |
# Instantiate the TiffOptions class | |
opts = slides.export.TiffOptions() | |
# Set compression type | |
opts.compression_type = slides.export.TiffCompressionTypes.DEFAULT | |
opts.notes_comments_layouting.notes_position = slides.export.NotesPositions.BOTTOM_FULL | |
# Set image DPI | |
opts.dpi_x = 200 | |
opts.dpi_y = 100 | |
# Set image size | |
opts.image_size = drawing.Size(1728, 1078) | |
# Save PPT as TIFF | |
presentation.save("ppt-to-tiff-custom-image.tiff", slides.export.SaveFormat.TIFF, opts) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import aspose.slides as slides | |
# Load presentation | |
presentation = slides.Presentation("presentation.pptx") | |
# Instantiate the TiffOptions class | |
opts = slides.export.TiffOptions() | |
# Set pixel format | |
opts.pixel_format = slides.export.ImagePixelFormat.FORMAT8BPP_INDEXED | |
# Save PPT as TIFF | |
presentation.save("ppt-to-tiff-pixel-format.tiff", slides.export.SaveFormat.TIFF, opts) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import aspose.slides as slides | |
# Load presentation | |
presentation = slides.Presentation("presentation.pptx") | |
# Save PPT as TIFF | |
presentation.save("ppt-to-tiff.tiff", slides.export.SaveFormat.TIFF) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment