Free Support Forum - aspose.com

Ppt to tiff

Hello - I have downloaded the Aspose.Total evaluation copy and wrote a C# conversion for Microsoft Office (Powerpoint) to TIFF conversion. The process requried one to go from PPT to PDF, then PDF to TIFF. Is it possible to go straight from PPT to TIFF? I have a problem that will require top performance - a 2 step process tends to be slower...

Secondly, I noticed that it only supported PPT and not PPTX (Office 2007) - Will .Total support Office 2007/2003?


This message was posted using Email2Forum by Merit.

Dear mlecc,

Thanks for considering Aspose.Slides for .NET

You can get images of slides and save them as TIFF images directly and you don't need this indirect conversion.

For your convenient, I wrote this code, that gets the images of all slides and save them in TIFF format.

C#

---------------------------------------------------------------------------

//Read source presentation

Presentation pres = new Presentation("c:\\source.ppt");

//Get the TIFF images of all slides and save it on disk

for (int i = 1; i <= pres.Slides.LastSlidePosition; i++)

{

Slide sld = pres.GetSlideByPosition(i);

//Get the image

//For higher resolution, use 2.0, 2.0 etc

Image img = sld.GetThumbnail(1.0, 1.0);

//Save the image as TIFF on disk

img.Save("c:\\img" + i + ".tiff", ImageFormat.Tiff);

}

---------------------------------------------------------------------------

Currently, it has limited support for MS-PowerPoint 2007 (pptx) format. Please see documentation.