TestFile.zip (32.2 KB)
Hi All,
Our team now facing an error when trying to convert pptx file contain some picture (attached file) to pdf for previewing, could you please give us some advice, below is the information regrading this error:
-
Aspose version we are using have SubscriptionExpiry on 2015/11/07
Aspose.Pdf version : 10.9.0
Aspose.Slides for .NET version : 15.9.0 -
C# code : Exception from this block of code
using (var ms = new MemoryStream(binary))
{
var amaDocType = Aspose.DocumentTypeManager.GetType(@this.Label);
//This one crach if cannot preview
Preview.PageCount(ms, amaDocType); <-- Error
return true;
} -
Exception message :
{Aspose.Slides.PptxReadException: Parameter is not valid. —> System.ArgumentException: Parameter is not valid.
at System.Drawing.Image.FromStream(Stream stream, Boolean useEmbeddedColorManagement, Boolean validateImageData)
at Aspose.Slides.ImageCollection.AddImage(MemoryStream stream)
at Aspose.Slides.ImageCollection.AddImage(Byte[] buffer)
at .( )
at .( )
at .( , IPresentation )
at .(Presentation , Stream )
— End of inner exception stack trace —
at .(Presentation , Stream )
at Aspose.Slides.Presentation.(Stream )
at Aspose.Slides.Presentation.(Stream )
at Aspose.Slides.Presentation…ctor(Stream stream, LoadOptions loadOptions)
at Amaris.Aspose.Preview.PreviewPowerpoint.get_Presentation()
at Amaris.Aspose.Preview.PreviewPowerpoint.PageCount()
at Amaris.Document.WepApp.Extensions.DocumentExtensions.IsPreviewable(AmarisDocument this, Byte[] binary) in