Hi!. I hope you can help me!.
I have a presentation pptx and I want export pptx to image. I'm using the next method:
string ruta = Server.MapPath("Documentos");
string rutaArchivo = Path.Combine(ruta, "PruebaArchivo.pptx");
Presentation presentation = new Presentation();
presentation.LoadFromFile(rutaArchivo);
for (int i = 0; i < presentation.Slides.Count; i++)
{
Image image = presentation.Slides[i].SaveAsImage();
String fileName = Path.Combine(ruta, String.Format("result-img-{0}.Tiff", i));
image.Save(fileName, System.Drawing.Imaging.ImageFormat.Tiff);
}
I can obtain the images, however many contents elements in the slides are deleted and any color are changed....