Just take the ususal suspect code
Presentation presentation = new Presentation("example.pptx");
presentation.Save("output.html", SaveFormat.Html5);
Will throw
System.ArgumentException: Resource not found (Parameter ‘obj’)
This does not happen with 22.11 (or so) but that version has several other issues.
The PPTX file is just one slide with a video.
@tigerlutz,
Thank you for contacting support.
To investigate the case, we need more details. Please share the following files and information:
- sample presentation file (you can zip it and upload an archive here)
- OS version on which the code was executed
- .NET target platform in your app
@tigerlutz,
Thank you for the additional information. I’ve reproduced the exception you described.
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): SLIDESNET-44412
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
Thank you.
We were considering a purchase of Aspose Slides but need to have HTML5 working.
@tigerlutz,
We really appreciate you choosing Aspose.Slides. Our developers will do their best to resolve the issue. Thank you for your patience.
@tigerlutz,
The issue will be solved in Aspose.Slides for .NET 24.2. This release will be published in the second half of February, and you will be notified.
The issues you found earlier (filed as SLIDESNET-44412) have been fixed in Aspose.Slides for .NET 24.2 (ZIP, MSI).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.
Thank you for providing the fix.
It is okay but not good enough.
The presentation I’d like to convert has 53 pages.
Saving the slides individually as HTML5 will save
all slides in one HTML file. The “normal” HTML
does not do that.
I split them manually and save each file with a
single slide as HTML5. Works but the videos
are out of sync. They all show the same video.
Which is from the last file/slide.
@tigerlutz,
Could you please share the presentation file and code example you used? We will do our best to help you.
Dear Andrey,
I am very sorry for the delay
The ZIP file contains a 3 page PPTX.
The code in question is this
using (Presentation convertMe = new Presentation(thePath + pptx))
{
int numSlides = convertMe.Slides.Count;
for (int iSlide = 0; iSlide < convertMe.Slides.Count; iSlide++)
{
// Prepare names.
string pName = theOutPath + iSlide.ToString("D2") + ".pptx";
string hName = theOutPath + iSlide.ToString("D2") + ".html";
value = 100.0 * iSlide / numSlides;
theSplitter.ReportProgress((int)value);
// Saving starts. Which page?
convertMe.Save(hName, new[] { iSlide + 1 }, Aspose.Slides.Export.SaveFormat.Html5);
}
}
The conversion works OK so far but I get 3 HTML files that are identical and contain
all slides.
I was doubting the code and changed Aspose.Slides.Export.SaveFormat.Html5
to Html
. I’ll an HTML file per slide. As expected.
Hope that helps.
aspose faked pptx.zip (19.4 MB)
@tigerlutz,
Thank you for the details. I am working on the issue and will get back to you soon.
@tigerlutz,
I’ve reproduced the problem you described.
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): SLIDESNET-44464
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
The issues you found earlier (filed as SLIDESNET-44464) have been fixed in Aspose.Slides for .NET 24.11 (ZIP, MSI, NuGet, Cross-platform).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.