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

Free Support Forum - aspose.com

InvalidOperationException: SolidFillColor is unavailable for FillType=Picture

Hi,

We’re doing a pptx-to-html5 conversion, but it appears there’s an issue with regards to getting the solid fill colors during the process.

Unhandled Exception: System.InvalidOperationException: SolidFillColor is unavailable for FillType=Picture
   at Aspose.Slides   .get_SolidFillColor()
   at Aspose.Slides.☼   .y4h4y4pedhvt7fb97k863xsvf8k26tyt  ()
   at Aspose.Slides.♫   .☻[T](String ☻, TemplateContext`1 ♥, TextWriter ♣)
   at Aspose.Slides.☼   .y4h4y4pedhvt7fb97k863xsvf8k26tyt  ()
   at Aspose.Slides.☻   .☻(Presentation ☻, Stream ♥, IHtml5Options ♣)
   at Aspose.Slides.☻   .☻(Presentation ☻, Stream ♥, Html5Options ♣, InterruptionToken)
   at Aspose.Slides.Presentation.Save(Stream stream, SaveFormat format, ISaveOptions options)
   at Aspose.Slides.Presentation.Save(String fname, SaveFormat format, ISaveOptions options)

This happens in both Windows and macOS. Issue doesn’t happen when converting to pdf and regular html format.

Environment

  • macOS Intel Core i5; macOS Monterey 12.3.1; .NET 5.0 / .NET 6.0
  • Windows 10 Enterprise (10.0.19044); .NET 4.8 Framework
  • Aspose.Slides.NET v22.9

assets.zip (1.6 MB)

@eugene.ee13,
Thank you for reporting the issue.

I’ve reproduced the problem with converting the presentation to HTML5 document and added a ticket with ID SLIDESNET-43473 to our issue tracking system. We apologize for any inconvenience. Our development team will investigate the case. You will be notified when a new release of Aspose.Slides with a fix is published.