We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Animation exception on saving presentation with animation to PDF (C# .NET)

Conversion of PPTX to PDF failed with following exception. We are using Aspose.Slides(5.6 ver.) Please provide fix for this asap.

2/3/2012 2:05:14 AM\
Message: HandlingInstanceID: 425f8fa1-0c35-424f-8151-8d53cc90f993\
An exception of type 'System.NullReferenceException' occurred and was caught.\
2012-02-02 21:05:14Z\
System.NullReferenceException, mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089\
Object reference not set to an instance of an object.\
Aspose.Slides in file: C:\\WINDOWS\\TEMP\\IntraLinks\\9982992b-f218-42fc-8784-c1a407922d5e.pptx\
Aspose.Slides.Pptx.Animation.AnimEffectTypeEx a(Int64, r6)\
at Aspose.Slides.Pptx.Animation.AnimEffectEx.a(Int64 A_0, r6 A_1)\
at Aspose.Slides.Pptx.Animation.AnimSequenceEx.b(h A_0)\
at Aspose.Slides.Pptx.Animation.AnimSequenceEx.b(h A_0)\
at Aspose.Slides.Pptx.Animation.AnimSequenceEx.b(h A_0)\
at Aspose.Slides.Pptx.Animation.AnimSequenceEx.c(h A_0)\
at Aspose.Slides.Pptx.Animation.AnimTimeLineEx.a(be A_0)\
at Aspose.Slides.Pptx.SlideEx.a(c9 A_0)\
at Aspose.Slides.Pptx.PresentationEx.a(nb A_0)\
at Aspose.Slides.Pptx.PresentationEx..ctor(String file)\
at Intralinks.Common.Utilities.CommonUtilities.ConvertOfficeDocsToPDF(String sourceFile, String destinationFolder, Boolean useOriginalFileName) in c:\\ilbuilds\\pdfconv\\build_trunk\\CommonUtilities
CommonUtilities.cs:line 1376\
Category: Logging Exception\
Priority: 1\
EventId: 100\
Severity: Error\
Title:Enterprise Library Exception Handling\
Machine: WDPDPF01\
Application Domain: ILPDFConversionService.exe\
Process Id: 808\
Process Name: C:\\PDFConvService\\WOODDALE.pdfconv\\instance1\\Release\\ILPDFConversionService.exe\
Win32 Thread Id: 5716\
Thread Name: \
Extended Properties: Product Version - 3.0.24944.0\

Hi Viral,

I have observed the stack trace shared by you but in order to further investigate and resolve the issue, I may request you to please share the source presentation along with used code snippet. Please share the information related to Aspose.Slides for .NET version used along with platform information.

Many Thanks,

I will try to get that sample pdf. We are using following code snippet:

case “.pptx”:
Aspose.Slides.License pptxLicense = new Aspose.Slides.License();

Aspose.Slides.Pptx.PresentationEx presentationEx = new Aspose.Slides.Pptx.PresentationEx(sourceFile);
presentationEx.Save(destinationFilePath, Aspose.Slides.Export.SaveFormat.Pdf);

retVal = destinationFilePath;

Hi Viral,

The code snippet that you have shared seems OK. I would suggest you to please try using Aspose.Slides for .NET 5.9.0 as well on your end. If the issue still persist then kindly share the source presentation with us that is throwing exception.

Many Thanks,