Blank Page Is Rendered when Converting PPTX to HTML

Hi Aspose support,
In our product we have the functionality that converts PPT document to html.
We are using Aspose.Slides.NET (22.7.0) library.
After conversion PPT document to html, blank page getting rendered.
This issue occurs for all PPT that consist of only one slide.

Issue :issue.PNG (57.8 KB)

(left side PPT document -right side converted document view)
Source document:
Sourcedoc.zip (39.4 KB)

Resulted document after conversion:output.zip (832 Bytes)

sample source code:sample_Source_code.zip (1.0 KB)

Expected result: Converted html should be the same as PPT document with comments.

Please help on this.
Thanks.

@radha.bobbli,
Thank you for contacting support.

Please test your app code carefully, it looks like the issue is not related to Aspose.Slides. If the issue persists, please share a compilable code example instead of the above.

Please also note that you should use the HtmlOptions.NotesCommentsLayouting property and INotesCommentsLayoutingOptions.CommentsPosition property to display comments in the exported HTML document.

exportHtmlOptions.NotesCommentsLayouting.CommentsPosition = CommentsPositions.Right;

Documents: Convert PowerPoint (PPT, PPTX) to HTML in C# .NET

Thankyou for response.
Using HtmlOptions.NotesCommentsLayouting.CommentsPosition = CommentsPositions.Bottom;
able to rendered single slide pptx with comments. But single slide pptx with out comments was not able to rendered(blank page rendered).

without comments pptx:Charts Box & Wisker.zip (40.9 KB)

with comments pptx :Comments Blank Author and Initials.zip (39.5 KB)

Please help on this.

@radha.bobbli,
Unfortunately, I was unable to reproduce the problem you are experiencing. I used the following code snippet:

var htmlOptions = new HtmlOptions();
htmlOptions.NotesCommentsLayouting.CommentsPosition = CommentsPositions.Bottom;

using (var pres = new Presentation("Charts Box & Wisker.pptx"))
{
    pres.Save("output.html", SaveFormat.Html, htmlOptions);
}

Result: output.zip (2.6 KB)

Please share the following data and information:

  • compilable code example that reproduces the problem
  • OS version on which the code was executed
  • .NET target platform in your app

Hi,

We are able to render the converted html for single side and multiple slides.

Thankyou for the support.

@radha.bobbli,
We are glad to know that the issue has been resolved on your end. Thank you for using Aspose.Slides.

1 Like