PowerPoint to TIFF conversion could be useful in various scenarios, such as, for printing, fax, etc. In order to perform this conversion programmatically, this article covers how to convert PowerPoint PPTX/PPT to TIFF using C#. Furthermore, you will learn how to customize the size and pixel format of the resultant TIFF images.
- C# PowerPoint to TIFF Converter
- Convert PowerPoint to TIFF
- Convert PowerPoint to TIFF with Custom Image Size
- PPTX to TIFF with Custom Pixel Format
TIP: You may want to check out Aspose FREE online PowerPoint to Poster Converter.
C# PowerPoint to TIFF Converter
In order to convert the PowerPoint presentations, we will use Aspose.Slides for .NET. The API is designed to create, manipulate and convert presentation documents from within the .NET applications. You can either download the API or install it using NuGet.
PM> Install-Package Aspose.Slides.NET
Convert PowerPoint PPTX to TIFF using C#
The following are the steps to convert a PowerPoint PPTX/PPT to TIFF using C#.
- Load the PowerPoint presentation using Presentation class.
- Convert PPTX to TIFF using Presentation.Save(string, SaveFormat.Tiff) method.
The following code sample shows how to convert a PowerPoint PPTX file to TIFF.
C# Convert PowerPoint to TIFF with Custom Image Size
Aspose.Slides for .NET also allows you to customize the size of the resultant image in PowerPoint to TIFF conversion. The following are the steps to achieve this.
- Load the PowerPoint presentation using Presentation class.
- Create an instance of TiffOptions class.
- Set image size using TiffOptions.ImageSize property.
- Convert PPTX to TIFF using Presentation.Save(string, SaveFormat.Tiff) method.
The following code sample shows how to convert PPTX to TIFF with custom image size.
Convert PowerPoint to TIFF with Custom Pixel Format
The following are the steps to customize the pixel format in PPTX to TIFF conversion using C#.
- Load the PowerPoint presentation using Presentation class.
- Create an instance of TiffOptions class.
- Set pixel format to desired format using TiffOptions.PixelFormat property.
- Convert PPTX to TIFF using Presentation.Save(string, SaveFormat.Tiff) method.
The following code sample shows how to customize pixel format in PPTX to TIFF conversion.
Get a Free API License
You can use Aspose.Slides for .NET without evaluation limitations by requesting a temporary license.
Conclusion
In this article, you have learned how to convert PowerPoint PPTX/PPT to TIFF using C#. Furthermore, you have seen how to customize the size and pixel format of the resultant TIFF images. You can visit the documentation to explore other features of Aspose.Slides for .NET. In addition, you can feel free to let us know about your queries via our forum.