Hi,
We’re evaluating Aspose for converting PPTs to HTML and ran into some trouble. First we tried 15.8, but the sample provided in the docs threw an ExceptionOnInitializerError, which I believe others already experienced.
Went back to 15.7, and managed to generate the HTML but unfortunately it doesn’t do/show anything. It seems it looks for an id in the HTML that doesn’t exist.
What is the recommended way to convert to HTML?
Could you please help with the above issue?
Thanks in advance!
Regards,
Tibor
Hi Tibor,
Thanks for inquiring Aspose.Slides.
I have observed the requirements shared by you and like to share that we have already logged issues regarding ExceptionOnInitializationError on loading the presentation. For your second issue concerning to problem while generating the HTML for presentation, I request you to please provide the source presentation and generated HTML along with snapshot describing the issue. I will investigate the issue further on my end to help you out.
Many Thanks,
Hi Mudassir,
The code:
Presentation pres = new Presentation(<source_path>);
HtmlOptions htmlOpt = new HtmlOptions();
htmlOpt.setHtmlFormatter(HtmlFormatter.createSlideShowFormatter("", false));
pres.save(<destination_path>, SaveFormat.Html, htmlOpt);
Source presentation and result HTML attached (html is renamed to txt, because html extension is not allowed).
Thanks,
Tibor
Hi Tibor,
Hi,
JDK 1.8, Ubuntu 14.10 x64, Aspose.Slides 15.7.0
Thanks,
Tibor
Thanks for the rar file, but it seems you used the basic documentFormatter.
That’s why pasted in the sample code I used:
Presentation pres = new Presentation(<source_presentation_path>);
HtmlOptions htmlOpt = new HtmlOptions();
htmlOpt.setHtmlFormatter(HtmlFormatter.createSlideShowFormatter("", false));
pres.save(<result_html_path>, SaveFormat.Html, htmlOpt);
And when you open the result HTML file, nothing appears, because the generated javascript refers to an id that doesn’t exist in the html.
Thanks again!
Regards,
Tibor
The issues you have found earlier (filed as SLIDESJAVA-35067) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by Aspose Notifier.