The following example code (from here) returns an error
options.pixel_format = slides.export.ImagePixelFormat.FORMAT_8BPP_INDEXED
** File “C:\Program Files\Python39\lib\enum.py”, line 429, in getattr**
** raise AttributeError(name) from None**
AttributeError: FORMAT_8BPP_INDEXED
Any idea what is wrong please?
import aspose.slides as slides
# Instantiate a Presentation object that represents a presentation file
pres = slides.Presentation("pres.pptx")
# Instantiate the TiffOptions class
options = slides.export.TiffOptions()
options.pixel_format = slides.export.ImagePixelFormat.FORMAT_8BPP_INDEXED
# Save the presentation to TIFF with specified image size
pres.save("Tiff_With_Custom_Image_Pixel_Format_out.tiff", slides.export.SaveFormat.TIFF, options)