ToTiff
ToTiff(Presentation, string)
Converts the input presentation to a set of TIFF format images. If the output file name is given as “myPath/myFilename.tiff”, the result will be saved as a set of “myPath/myFilename_N.tiff” files, where N is a slide number.
public static void ToTiff(Presentation pres, string outputFileName)
| Parameter | Type | Description |
|---|
| pres | Presentation | The input presentation. |
| outputFileName | String | The output file name. |
Exceptions
| exception | condition |
|---|
| ArgumentException | |
Examples
using (var pres = new Presentation("pres.pptx"))
Convert.ToTiff(pres, "presImage.tiff");
See Also
ToTiff(Presentation, string, ITiffOptions, bool)
Converts the input presentation to TIFF format with custom options. If the output file name is given as “myPath/myFilename.tiff” and multipage is false, the result will be saved as a set of “myPath/myFilename_N.tiff” files, where N is a slide number. Otherwise, if multipage is true, the result will be a multi-page “myPath/myFilename.tiff” document.
public static void ToTiff(Presentation pres, string outputFileName, ITiffOptions options,
bool multipage)
| Parameter | Type | Description |
|---|
| pres | Presentation | The input presentation. |
| outputFileName | String | The output file name. |
| options | ITiffOptions | The TIFF saving options. |
| multipage | Boolean | Specifies whether the generated TIFF document should be a multi-page. |
Exceptions
| exception | condition |
|---|
| ArgumentException | |
Examples
ITiffOptions options = new TiffOptions()
{
CompressionType = TiffCompressionTypes.CCITT3,
SlidesLayoutOptions = new NotesCommentsLayoutingOptions()
{
NotesPosition = NotesPositions.BottomTruncated
}
};
using (var pres = new Presentation("pres.pptx"))
Convert.ToTiff(pres, "pres.tiff", options, false);
See Also