We are using Aspose.Slides to generate a Pptx file, and from this file to generate a Tiff file.
The generated Tiff file, looks weird, and doesn’t show what it should.
Below you can find the code that I am using
image.png (154.9 KB)
using System.IO;
using Aspose.Slides.Export;
using PptAsposeReproducer.Properties;
namespace PptAsposeReproducer
{
public static class Program
{
public static void Main(string[] args)
{
var pptxBytes = Resources.Report;
var pptx = new MemoryStream(pptxBytes);
var tiffOutput = new MemoryStream();
pptx.Position = 0;
using (var presentation = new Aspose.Slides.Presentation(pptx))
{
var tiffOptions = new TiffOptions
{
CompressionType = TiffCompressionTypes.LZW
};
presentation.Save(tiffOutput, SaveFormat.Tiff, tiffOptions);
}
using (var file = new FileStream(“Tiff.tiff”, FileMode.Create))
{
tiffOutput.Position = 0;
tiffOutput.CopyTo(file);
}
}
}
}