C# Document Converter Library
C# Tiff Convert: How to Convert PowerPoint Document to Tiff Image
Support Converting Microsoft Office PowerPoint Document to Tiff Image File
With the help of XDoc.Converter for .NET, C# prgorammers can easily integrate and add advanced PowerPoint (.ppt and .pptx) to Tiff conversion functionality into various .NET applications, like ASP.NET web application, Windows Forms application, Console application, etc.
C# Class Code for PowerPoint to Tiff Converting
Here, we just provide an example of using C# class code to convert the whole PowerPoint document to Tiff image file. In addition, you are able to define and transform one of PPT slides to a single page Tiff image.
The following demo code will create an output .tif file with default resolution(96) and default compression(JPEG).
// Define input and output files path.
String inputFilePath = @"C:\input.pptx";
String outputFilePath = @"C:\output.tif";
// Convert PowerPoint to Tiff.
ConvertResult result = DocumentConverter.ToDocument(inputFilePath, outputFilePath, FileType.DOC_TIFF);
Converting PowerPoint File to Tiff Image with Settings(Compression and Resolution)
You may directly copy and paste this PowerPoint to Tiff conversion demo to your C# .NET program.
The following demo code will create an output .tif file with resolution(100) and compression(LZW).
//Define the document save setting options
DocumentSaveOption option = new DocumentSaveOption(FileType.DOC_TIFF);
//set the output tiff file compression
option.CompressionMode = ImageCompress.LZW;
//set the output tiff file resolution
option.Resolution = 100;
DocumentConverter.ToDocument(@"C:\input.pptx", @"C:\output.tif", option);