This project is read-only.

Rendered As Tiff By User Defined Dimension

The following example shows how to convert a presentation into TIFF document with customized image size using TiffOptions class.

//Instantiate a Presentation object that represents a Presentation file
            PresentationEx pres = new PresentationEx("Conversion.ppt");
                //Instantiate the TiffOptions class
                Aspose.Slides.Export.TiffOptions opts = new Aspose.Slides.Export.TiffOptions();

                //Setting compression type
                opts.CompressionType = TiffCompressionTypes.Default;

                //Compression Types

                //Default - Specifies the default compression scheme (LZW).
                //None - Specifies no compression.

                //Depth – depends on the compression type and cannot be set manually.
                //Resolution unit – is always equal to “2” (dots per inch)

                //Setting image DPI
                opts.DpiX = 200;
                opts.DpiY = 100;

                //Set Image Size
                opts.ImageSize = new Size(1728, 1078);

                //Save the presentation to TIFF with specified image size
                pres.Save("Converted.tiff", Aspose.Slides.Export.SaveFormat.Tiff, opts);


Last edited Mar 3, 2014 at 6:26 AM by asposemarketplace, version 3