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)
ParameterTypeDescription
presPresentationThe input presentation.
outputFileNameStringThe output file name.

Exceptions

exceptioncondition
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)
ParameterTypeDescription
presPresentationThe input presentation.
outputFileNameStringThe output file name.
optionsITiffOptionsThe TIFF saving options.
multipageBooleanSpecifies whether the generated TIFF document should be a multi-page.

Exceptions

exceptioncondition
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