Create PPTX/PPT from HTML

Hi,
please i need to create Power point from from HTML data.

HTML contains Arabic data.

the file contains HTML, HTML is too long and can not be written on a single slide.

File Path is :- Aspose HTML - Google Drive

@Aata,

I have worked with the HTML file shared by you and like to share that you can import HTML inside slide text frame but that also has limitation of handling amount of text inside it. You may use the AutofitType for text frame that can reduce the text size to accommodate inside a shape by reducing the font size. The other option is that you may divide the HTML text in several chunks and include them in presentation text frame.

public static void ImportHMTL()
{
    String path = @"C:\Aspose Data\";
    using (Presentation presentation = new Presentation())
    {
        // Get the first slide
        ISlide slide = presentation.Slides[0];
        // Add an autoshape of type line
 //           Aspose.Slides.IAutoShape ashape = slide.Shapes.AddAutoShape(ShapeType.Rectangle, 10, 10, 300, 300);
        Aspose.Slides.IAutoShape ashape = slide.Shapes.AddAutoShape(ShapeType.Rectangle, 0, 0, presentation.SlideSize.Size.Width, presentation.SlideSize.Size.Height);
        ashape.FillFormat.FillType = FillType.Solid;
        ashape.FillFormat.SolidFillColor.Color = Color.Gray;

        // Adding text frame to the shape
        ashape.AddTextFrame("");

        // Clearing all paragraphs in added text frame
        ashape.TextFrame.Paragraphs.Clear();

        // Loading the HTML file using stream reader
        TextReader tr = new StreamReader(path + "reporthtml.txt");

        // Adding text from HTML stream reader in text frame
        ashape.TextFrame.Paragraphs.AddFromHtml(tr.ReadToEnd());

        ashape.TextFrame.TextFrameFormat.AutofitType = TextAutofitType.Normal;

        presentation.Save(path+"SavedImportHtml.pptx", Aspose.Slides.Export.SaveFormat.Pptx);

    }
}

SavedImportHtml.zip (20.8 KB)

Hi fayyaz,
do you have any capability to distribute the HTML automatically and distribute it cross powerpoint slide?
Another option do we have option rather than using ASPOSE.slides to do this functionality?

Appreciated your fast support as our customer want to withdraw the project from us because of this issue.

@Aata,

There is no mean available to verify that upto which point API may include the portion of HTML inside text frame and decide for automatic distribution to next slide. Aspose.Slides have capability to import HTML text inside text frame of slides. You have to devise your own logic in this regard to decided for even portions of HTML data to different text frames of slides.

I may not suggest any other option other than Aspose.Slides to serve the purpose on your end. Please feel free to share for any help related to Aspose.Slides features.