About using GroupDocs.Conversion for Java to convert HTML to PPT format

While testing the HTML to PPT conversion feature of GroupDocs.Conversion for Java, I found that the format of the resulting PPT file was incorrect. To help you reproduce and analyze the issue, I have uploaded the HTML test file (attached).

Could you please provide a PPT file generated from this HTML file?

Also, I would like to ask: how can I configure the page size of the output PPT when converting from HTML to PPT using GroupDocs.Conversion for Java?

ceshidemo.7z (1.4 KB)

@xingyu11

Could you please specify the exact issues you are facing with the format of the resulting PPT file? Additionally, please clarify what specific page size configuration you are looking for when converting from HTML to PPT.

Hello @xingyu11 ,

We have converted your document and attached the result to this post.
As you correctly noticed, the formatting in the output file is broken and differs from the original.
To address this issue, we’ve created a ticket in our tracking system with the ID CONVERSIONJAVA-2868.

Regarding your question about configuring page size for the resulting PPT document — unfortunately, this is not currently possible.
However, we plan to introduce a new property called CustomCssStyle for WebLoadOptions in future releases, which will offer more control over the HTML to PPT conversion process.

If you have any suggestions for additional settings or features you would like to see for HTML to PPT conversion, we would be glad to hear them — we are continuously working to improve our product.
ConvertToPresentation.zip (31.4 KB)

I changed the format of the Html file to adapt to the ppt format, but after the conversion all the styles were gone.
Can you give me a ppt file you converted?
test1.zip (2.9 KB)

Hello @xingyu11 ,

Thank you for reaching out.

After investigation, we’ve confirmed that when using external styles for an HTML document (via
<link rel="stylesheet" href="css/styles.css">), the styles are indeed not applied to the converted PPT document.

We’ve created an internal ticket with ID CONVERSIONJAVA-2872 to track this issue. It has been linked to this thread, and you will be automatically notified once the fix is released.

As a temporary workaround, we recommend using inline styles instead. Here’s an example of how your document might look in that case:
ConvertToPresentation.zip (32.0 KB)

Thanks for your reply!
Since the customer currently approves GroupDocs.Conversion for Java and wants to purchase it, we would like to discuss the solution further.

  1. The HTML file after changing to inline styles has been uploaded, but the width recognition is still not ideal. The original page only had 1 page, and after conversion, 2-3 pages were generated.
  2. The original buttons were all recognized as a background image.
    Can you provide a temporary solution? I look forward to your reply.

test1 -2.zip (1.7 KB)

企业微信截图_17477345349467.png (66.5 KB)

@xingyu11 ,

Regarding your first question, as we mentioned earlier, this issue has already been reproduced and logged under the ID CONVERSIONJAVA-2868.
The root of the problem lies in the fact that currently, when converting from HTML to other formats (including PPT), the CSS property display: flex; is not taken into account. As a result, all content is rendered sequentially, one after another, which causes the large number of pages.

As a temporary workaround, we recommend explicitly setting the position of each element inside .components-container.

As for your second question — unfortunately, at this time there is no alternative solution available. However, we’d love to hear your feedback: what would you prefer to see instead of background images for the buttons? If you could share your expectations or ideas, we’d be happy to investigate the feasibility of introducing such functionality for future HTML-to-PPT conversions.

I hope to achieve the effect according to the original page of the deeds, and the logo is recognized as a separate picture and inserted, at least not all images are converted into a background picture.

Hello @xingyu11,

Thank you for sharing your thoughts. We will conduct additional investigation on this matter and let you know as soon as we have any updates.