| TIFF format is known by its flexibility to accommodate multipage images and data. Keeping in view the importance and popularity of TIFF format, Aspose.Slides for .NET provides the support for converting presentations into TIFF document . |
Converting Presentation to TIFF
The Save method exposed by Presentation class can be called by developers to convert the whole presentation into TIFF document. Further, Tiff Options class exposes ImageSize property enabling the developer to define the size of the image if required.
The Save method exposed by Presentation class can be called by developers to convert the whole presentation into TIFF document. Further, Tiff Options class exposes ImageSize property enabling the developer to define the size of the image if required.
Converting Presentation to TIFF with default size
The following example shows how to convert a presentation into TIFF document with default options.
The following example shows how to convert a presentation into TIFF document with default options.
Example
[C#]
//Instantiate a Presentation object that represents a PPT file Presentation pres = new Presentation("demo.ppt"); //Saving the presentation to TIFF document pres.Save("demo.tiff", Aspose.Slides.Export.SaveFormat.Tiff);
[Visual Basic]
'Instantiate a Presentation object that represents a PPT file Dim pres As Presentation = New Presentation("demo.ppt") 'Saving the presentation to TIFF document pres.Save("demo.tiff", Aspose.Slides.Export.SaveFormat.Tiff)
Converting Presentation to TIFF with custom size
The following example shows how to convert a presentation into TIFF document with customized image size using TiffOptions class.
The following example shows how to convert a presentation into TIFF document with customized image size using TiffOptions class.
Example
[C#]
//Instantiate a Presentation object that represents a PPT file Presentation pres = new Presentation("demo.ppt"); //Instantiate the TiffOptions class Aspose.Slides.Export.TiffOptions opts = new Aspose.Slides.Export.TiffOptions(); //Set Image Size opts.ImageSize = new Size(150, 200); //Save the prsentation to TIFF with specified image size pres.Save("demo.tiff", Aspose.Slides.Export.SaveFormat.Pdf,opts);
[Visual Basic]
'Instantiate a Presentation object that represents a PPT file Dim pres As Presentation = New Presentation("demo.ppt") 'Instantiate the TiffOptions class Dim opts As Aspose.Slides.Export.TiffOptions = New Aspose.Slides.Export.TiffOptions() 'Set Image Size opts.ImageSize = New Size(150, 200) 'Save the prsentation to TIFF with specified image size pres.Save("demo.tiff", Aspose.Slides.Export.SaveFormat.Tiff,opts)
